Data dodania Pytanie
2017-07-15 07:07 Rails Exception Notifier does not send mail on 404 »
I could request a page that does not exists and I would suppose a 404 would be send, but with the configuration below I receive mails for other errors...
(0) odpowiedzi
2017-07-14 20:07 Ruby on Rails resque task gets error »
I'm trying to use resque in my ruby on rails application. I created resque.rake file in lib/tasks folder require 'resque/tasks' task 'resque:setup'...
(1) odpowiedzi
2017-07-14 13:07 before_destroy check if attribute for related model is given (version control) »
i have a model which has_many relation to a version model. Any action on the parent model need to be tracked. At the form for delete i have added a ne...
(1) odpowiedzi
2017-07-14 08:07 Image not displaying in production mode »
Images are not displaying in production mode. It is working fine in the development environment. For example, image is not displayed for the followin...
(1) odpowiedzi
2017-07-13 23:07 How to compare times in different time zones in Ruby? »
I have this date that which is in timezone offset format that I need to convert to UTC format. For example: date1 = 2017-07-13T17:13:12-04:00 date2...
(1) odpowiedzi
2017-07-13 13:07 How create files inside backbone assets »
I want to create files inside backbone collection, template and model using one commend like "scaffold". My directory structure is as follow. How it w...
(0) odpowiedzi
2017-07-13 00:07 Why does Ruby fail to remove method even though it is clearly defined? »
I work on a rather complex Ruby project that has multiple interdependencies. With recent bundle update, I got logging-rails (0.6.0) pulled in, and tha...
(0) odpowiedzi
2017-07-12 12:07 Rest client post request, error with multipart »
I have the following ajax request which works fine, but when i try the same through rest-client ruby gem i'm getting the following error "{\"error\":...
(0) odpowiedzi
2017-07-11 21:07 Reset counter after finishing iterating with the array elements »
I’m doing this code but I can’t find the proper way to reset the counter after iterating with all the elements inside the array. The idea is that...
(1) odpowiedzi
2017-07-11 17:07 uninitialized constant User::FavoriteRecipe »
So I was trying to implement a favouriting system for an app of mine and followed this guide: The particular setup you describe mixes several types o...
(0) odpowiedzi
2017-07-11 14:07 Delayed job picking attributes from table differently in different environments »
I am using delayed job to queue a Model method in another Model like this: article_loader.rb date_value_in_string = "2017-06-21 07:17:00" Article.d...
(0) odpowiedzi
2017-07-10 12:07 text_field_tag placeholder ignoring dynamic text after space in rails »
I am using I18n for internationalization. for displaying place holder content in locale language in placeholder of text_field_tag im using following c...
(0) odpowiedzi
2017-07-07 19:07 ActiveAdmin looking up wrong table names for nested modules and ActiveRecord models »
I have a module where all our Accounting ActiveRecord classes live within. I have an AR class called Requests and a subclass called Check (logically t...
(0) odpowiedzi
2017-07-07 02:07 How to fix Country-State-Select gem undefined method issue? »
In a implementation of gem: https://github.com/arvindvyas/Country-State-Select When i go to Post Job new page show this error on the log undefined...
(2) odpowiedzi
2017-07-06 09:07 String value gets converted to Time object when a model method is called using delayed job »
I am using delayed job to queue a Model method in another Model like this: article_loader.rb date_value_in_string = "2017-06-21 07:17:00" Article.d...
(1) odpowiedzi
2017-07-05 08:07 Get parent objects without active childs »
I've two models, Doctor and DoctorClinic where a doctor has_many clinics. doctor.rb: has_many :clinics, class_name: 'DoctorClinic', dependent: :dest...
(1) odpowiedzi
2017-07-04 10:07 Gem::Ext::BuildError: ERROR: Failed to build gem native extension for rails version 4.2.6 »
i have created new rails app and try to run bundle install it shows this error, Gem::Ext::BuildError: ERROR: Failed to build gem native extension. cu...
(1) odpowiedzi
2017-07-03 18:07 Model serilize hash turned from hash to string when saving object »
ruby 2.3.3, rails 3.2.22.5 Hi. I'm using a serialized :logs, Hash in a User model, when saving the logs hash- afterwards it's being retrieved as stri...
(1) odpowiedzi
2017-07-02 15:07 Ruby on rails devise form helper »
I'm starting with ruby and rails and I want to create a helper to show this form : <%= form_for( :user, :url => session_path( :user) ) do |f| %...
(1) odpowiedzi
2017-06-30 23:06 Why my rails command works differently with system() than in terminal? »
The command that I'm trying to run is rails _3.2.13_ new App When I run it in command line it creates a Rails app with version 3.2.13, but when I ru...
(1) odpowiedzi
2017-06-30 14:06 User rails console to login as a specific user »
I'm using the rails console to and app.get to try to track down a bug that only happens for a specific user. Is there a way to issue a request as tha...
(0) odpowiedzi
2017-06-30 10:06 error when comparing dates in sidekiq-cron »
When run sidekiq, in log receive this error: ERROR: CRON JOB: comparison of Time with EtOrbi::EoTime failed ERROR: CRON JOB: /home/user/.rvm/gems/rub...
(1) odpowiedzi
2017-06-29 23:06 Rails: Call a method from a model in Rails Migration »
Trying to call a method from scenario.rb which contains a method called complete_scenario? which returns a boolean inside the migration file but an er...
(3) odpowiedzi
2017-06-29 11:06 Error "undefined method `to_datetime'" in sidekiq »
Start sidekiq with the command bundle exec sidekiq -e production -P /path/to/pid/file/tmp/pids/sidekiq.pid -L /path/to/log/file/shared/log/sidekiq.lo...
(2) odpowiedzi
2017-06-29 10:06 Order a model with conditions in Rails (3) »
Lets say there is a model called Event. I want to display important and current events first, so i have the attributes important (boolean) and enddate...
(2) odpowiedzi
2017-06-29 01:06 has_many polymorphic relationship where our _type field is an int? »
We have an app in Rails 4 (but soon to be Rails 5) that has a polymorphic log class that we inherited from a Django app. In a traditional polymorphic...
(0) odpowiedzi
2017-06-28 14:06 Rails database setup Polymorphism »
We have to create a request system which will have roughly 10 different types of requests. All of these requests will belong to the 'accounting' aspec...
(4) odpowiedzi
2017-06-28 13:06 Cannot allocate memory in ruby on rails? »
I given 2GB RAM. If comes traffic on my website then create problem every time throw exception cannot allocate memory and server process stop. ...
(0) odpowiedzi
2017-06-28 13:06 First rails application: routes.rb not leading to right page(?) »
Apologies in advance if this is so basic I probbaly shouldn't post it here. I'm not even sure if the title actually describes the issue. I am just sta...
(1) odpowiedzi
2017-06-27 06:06 API call works on development, timesout on production heroku »
I am using an API which works fine on development but timeouts when I call it from production or heroku run rails console. I'm doing the following u...
(1) odpowiedzi
2017-06-26 08:06 Redmine on Turnkey »
Having issues after updating Ruby and Rails under Turnkeylinux Redmine. I couldn't run it. Im getting this error : https://prnt.sc/fo7afc config.ru:1...
(0) odpowiedzi
2017-06-26 00:06 Clear cart ruby on rails »
I am a beginner Ruby on rails, I am trying to create a small system of cart. I already rather advance well thanks to stackoverflox and some little tut...
(1) odpowiedzi
2017-06-25 08:06 Getting "Expected(200) <=> Actual(400 Bad Request)" error for asset_sync gem »
I am trying to set up existing rails 3.2.11 project in production environment. We have used asset_sync gem for syncing assets in s3. But when I ran ...
(0) odpowiedzi
2017-06-23 16:06 How do you remove the edit button in an active admin show »
I want to remove the edit button on active admin show pages for any record except for those where the month and year equal the current month and year....
(2) odpowiedzi
2017-06-23 07:06 when installing bundle install error of therubyracer »
i have install nodejs on ubuntu 14.04 ..but when installing bundle install i have get error Gem::Ext::BuildError: ERROR: Failed to build gem nati...
(0) odpowiedzi