Data dodania Pytanie
2017-05-28 17:05 Unable to SSH into DigitalOcean droplet which was created by "docker-machine" command »
I have created a DigitalOcean droplet using docker-machine command. Now, I am unable to login from my local machine to droplet because my ssh key is n...
(1) odpowiedzi
2017-05-28 11:05 raise RestClient::ServerBrokeConnection rails error »
when My request return huge json as a result rest-client return error: raise RestClient::ServerBrokeConnection but smaller json result works well ...
(0) odpowiedzi
2017-05-27 19:05 Has_one through AND has_many through together »
Hello i have 3 models: Sale Customer Customer Address -Each SALE should have only one CUSTOMER -Each CUSTOMER can have more than one SALE That w...
(1) odpowiedzi
2017-05-27 06:05 How to copy a attribute of another model in rails? »
I'm trying to copy the email attribute from User using after create, but in the logs i get an error. The method that I'm trying is: class Car &l...
(1) odpowiedzi
2017-05-27 02:05 Rails send 2 emails in one mailer function »
I'm trying to send 2 emails on the same function but after send the log show An SMTP To address is required to send a message. Set the message s...
(1) odpowiedzi
2017-05-26 19:05 Setting path of imagemagik »
I installed imagemagik in the past and was working fine until i reinstalled rails, imagemagik is still installed but when i try to type which convert ...
(0) odpowiedzi
2017-05-26 18:05 Rails detect if object is session table »
I use rails 3.2. I try to add a global check on a field of my model called account_id. My problem is that there are tables that not have this field li...
(0) odpowiedzi
2017-05-26 12:05 What is :manage, :all doing in Ruby? »
I have a basic authorization class in a Rails application which looks like this: class Ability include CanCan::Ability def initialize(user) ...
(1) odpowiedzi
2017-05-25 21:05 AASM does not trigger before callbacks on calling the same state/event again »
I have following state machine - which is NOT sending the mails again after I called the send_mail method once. It works only the first time?! aasm d...
(0) odpowiedzi
2017-05-25 17:05 Rails overide default scope global »
I have a Rails 3.2 application, and I want to use one database for many clients and one application. So for every model I have created a field called ...
(2) odpowiedzi
2017-05-25 08:05 mysql2 ruby 2.3.1 install error using »
I'm not very expert on Ruby. When I try to run my apps on local, it should be run well, but it's not. When I start server rails s it says => B...
(1) odpowiedzi
2017-05-24 20:05 Trying to make associations with Rails »
i'm learning Rails and i'm doing an exercise to practice associations and migration files. Currently, trying to make a models between users, auction ...
(2) odpowiedzi
2017-05-24 13:05 AASM state machine exception handling example? »
I'm currently working on a class, which is basically doing following: model gets created fetches data (event "get_things!") if exception happens, ...
(1) odpowiedzi
2017-05-24 09:05 2.3.0/gems/twitter-6.1.0/lib/twitter/rest/response/raise_error.rb:13:in `on_complete': Bad Authentication data. (Twitter::Error::BadRequest) »
Simply put, I'm attempting to post a tweet using these pieces of ruby code: require 'Twitter' client = Twitter::REST::Client.new do |config| config....
(1) odpowiedzi
2017-05-23 16:05 Rails Devise: two different after_update_path_for »
I have two pages rendering the update user form of Devise. The classic one (users/edit) and a '/page' page with just a part of the full edit form. I w...
(1) odpowiedzi
2017-05-23 14:05 Signup page error message in ruby on rails »
I am working on my making a sample app from Rails Tutorial by Micheal Hartl. I was working on the errors on my sign up page and I came across an issu...
(1) odpowiedzi
2017-05-23 10:05 Need a single rails model with dynamic collection name »
I have rails model and I am using mongo mapper as ORM. I have two collections with similar attributes and this needs to map with the single model. I n...
(0) odpowiedzi
2017-05-22 19:05 How to schedule a rake tasks in Google Cloud? »
I had a Rails application on Heroku, and to schedule some rake tasks I used an add-on called Scheduler. I had to change my application to Google Cloud...
(1) odpowiedzi
2017-05-22 04:05 Rails how create association in the model before or after create? »
i'm using a callback to create a association but after the creation did not associate Someone have any hint how associate in the model instead of in...
(1) odpowiedzi
2017-05-21 17:05 I'm getting a undefined method error in Ruby on Rails and I'm not sure why »
Basically I have 2 tables called Employees and Sales. I have a form where you input the Employee name and it should show you what phones they have sol...
(1) odpowiedzi
2017-05-21 08:05 Rails Setup act as commentable gem »
after setting the gem everything is working greatly but after post the user comment did save in db someone know why? the db Comment id: 12, titl...
(0) odpowiedzi
2017-05-20 20:05 Uservoice classic widgets appears in production environment but doesn't appear in developpement environement »
I got ruby on rails project that i just install in my localhost, this project contains some uservoice classic widgets. these widgets appear on the hos...
(0) odpowiedzi
2017-05-20 08:05 Joining two or more tables in Rails? »
I have 3 tables Ledgers, Accounts, Users and organisation I am trying to get accounts using ledger Id for each specific user. Table Ledgers contain...
(1) odpowiedzi
2017-05-20 00:05 UserVoice is not defined »
I am working on project that use uservoice classic widget. The uservoice classic widget works good in hosted version of the project: whenever i click ...
(0) odpowiedzi
2017-05-19 18:05 select option des not work in rails »
I am trying to display the value have chosen, but it does not seem to be working. Any ideas? Here is the code: <label>Apply to <%= st...
(1) odpowiedzi
2017-05-19 09:05 Submit button with Options »
For one form, I want to have two submit buttons , named: Appove, Decline when the user clicks on Approve it should send approve: true as well when ...
(2) odpowiedzi
2017-05-18 11:05 TinyTds::Error: Invalid length parameter passed to the LEFT or SUBSTRING function »
This is an update statement - which throws the below error when executed . I haven't used LEFT or Substring hence cannot understand what the error mea...
(0) odpowiedzi
2017-05-18 08:05 How to initialise a method in a ruby class on rails server start up »
I have created ruby thread which keep polling messages from Queue. The following is the basic code block which keeps polling the queue infinitely.How ...
(0) odpowiedzi
2017-05-17 14:05 how to build a record with multiple references with has many association in rails »
I have 3 models named Article, User, Comment class Article < ActiveRecord::Base has_many :comments end class User < ActiveRecord::Base has...
(1) odpowiedzi
2017-05-17 10:05 Error "get 404 not found" in jquery rails »
My error in console of browser: GET http://server/assets/headhesive/options-f302fd8c6dff844c32b94df2780bdbdb.js 404 (Not Found) At the end of the f...
(0) odpowiedzi
2017-05-17 05:05 datetime saved in database but when i want to call the datetime it is a nil value »
I have a datetime, called due_date, that gets saved in agreement table. When i want to display the datetime, it just gives me nil, however Im looking ...
(0) odpowiedzi
2017-05-16 13:05 Gems are not being installed from capistrano deployment »
I am using: rails 4.2 unicorn server nginx web server capistrano for deployment. If I am adding a new gem to gemfile it's not reflecting in the a...
(1) odpowiedzi
2017-05-16 05:05 Rails why undefined local variable or method `new_dispute' for #<#<Class:0x007fec13d18678> »
i added dispute new link inside orders but rails log shows since the dispute is associated with order in the model why still show undefined local var...
(1) odpowiedzi
2017-05-16 01:05 rake aborted! StandardError: An error has occurred, this and all later migrations canceled: PG::Error: ERROR: »
I have an issue, concerning migration on Ruby on Rails 3.2.16. I got a project that i should run on my localhost, whenver I run bundle exec rake db:mi...
(0) odpowiedzi
2017-05-15 15:05 how to display map on pdf with wicked_pdf in rails? »
I am using wicked_pdf for generating pdf in my rails application. I need to display a map on pdf with iframe. I used bellow code for the map. %ifra...
(1) odpowiedzi