Data dodania Pytanie
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
2017-06-23 00:06 Audits log with nested models »
I'm using the gem audited to track database changes. I want to show the user a audition log, with all audits ordered by created_at. The problem is som...
(0) odpowiedzi
2017-06-22 22:06 Rails Zoho configuration sending mails via console but not from mailer class »
I have following smtp configuration on my development.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { ...
(1) odpowiedzi
2017-06-21 17:06 Rails mount twice in routes.rb »
I need to mount two times in my routes.rb file. Since I added ForestLiana, the second one (Facebook Messenger) is not working. When I try to connect ...
(2) odpowiedzi
2017-06-21 14:06 How to read a CSV File with Capl program? »
How do I read a CSV with Capl and get the invidual columns? Here's an example CSV file. ...
(0) odpowiedzi
2017-06-20 16:06 Ruby: Datetime to UTC conversion »
I am trying to convert the below date and time combination to UTC from_date: "2017-06-19",from_time: "14:00" to_date: "2017-06-19", to_time: "23:00" ...
(3) odpowiedzi
2017-06-20 09:06 How we can upload multiple images on cloudinairy in slots with rails »
My requirement is to upload multiple images on cloud in slots. For example i have 100 images in array then images goes in 3 - 3 slots on cloudinairy a...
(0) odpowiedzi
2017-06-19 14:06 Get single record from has_many using eager-loading in include »
I'm new to rails and stuck between eager-loading from last 2 days. I have two models Car and Images with Car has_many :images association. and I have ...
(2) odpowiedzi
2017-06-19 13:06 How to achieve deep linking in Ruby on Rails »
How can we achieve deep linking of ios applications on Rails server. I am not sure how a deep linking works, But in my understanding it should work l...
(0) odpowiedzi
2017-06-18 15:06 How to find a object and insert it in a database »
I’m trying to pick up the shop_id and subscription_id from a cart and insert/save them into the purchase database. I have a cart, line_items and s...
(1) odpowiedzi
2017-06-17 15:06 Rails 5 Active Record Record Invalid Error »
I have two Rails model namely Invoice and Invoice_details. An Invoice_details belongs to Invoice, and an Invoice has many Invoice_details. I'm not abl...
(2) odpowiedzi
2017-06-17 08:06 Why show undefined on rails select? »
i have a ajax select on a rails app that is showing undefined on select as shown below, I added the order scope to fix, but if I remove the order l...
(2) odpowiedzi
2017-06-16 21:06 How can I make follow form work with a list »
I have a relationship model that follow users back n forth now it works very well when I use it in users#show in my view just like this screenshot ...
(0) odpowiedzi
2017-06-16 14:06 Rails 3 #update_attributes »
I'm working on a Rails 4 app that was previously upgraded from Rails 3. I haven't worked much Rails 3 before. I came across this something like this u...
(2) odpowiedzi
2017-06-16 06:06 Getting error while migrating db in ruby on rails project on windows 7, with ruby 2.3.3 and rails 4.2.5.2 »
I am getting below errors on prelauch project on github. I have install postgres db but i am not getting which gem is having PGconn , PGresult and PGe...
(0) odpowiedzi
2017-06-15 13:06 Ruby on Rails - Security Notifications »
I'm working on a project with ROR framework and the gem "Devise" for the authentication. Actually i have 3 model of users : User Admin Company I ...
(0) odpowiedzi
2017-06-15 09:06 Put gem class into namespace »
To my Rails Gemfile I added a new gem. It is used like this: Email::Client The issue I'm having right now is that I also have a class in my rails a...
(1) odpowiedzi
2017-06-15 04:06 rails cannot create a new item »
I am working on creating a small rails app, and I have ran into a problem that I believe is in the backend of my database, but I don't know how to sol...
(3) odpowiedzi
2017-06-14 17:06 How to cache a ActiveRecord model object which contains carrierwave uploader to Redis »
I have a user model which has a carrierwave uploader for storing ths users profile picture class User < ActiveRecord::Base mount_uploader :pro...
(1) odpowiedzi