Ruby on Rails is an open-source web development framework written in Ruby. Ruby on Rails follows the principle of convention over configuration, freeing you from having to re-invent things to stay productive. Ruby on Rails 4.0 is the latest edge version available.

learn more… | top users | synonyms (2)

-1
votes
2answers
16 views

Rails Joins Issue

Model.joins(:model2) creates select models.* from models Inner Join .............. I want to specify particular column name out here how can I do this. I would prefer a rails method over a query. ...
0
votes
0answers
19 views

Whenever-capistrano deploy issue

Using whenever gem to manage cron jobs for my Rails 3.2.13 app. Deploying with Capistrano. Here is what I get in the outpout: ...
0
votes
0answers
7 views

How to use slimbars

Please can you help display the content of an array using a dropdown list in slimbars (I am using ruby on rails with backbone.js and slimbars for templates) I tried with the code below but I got ...
1
vote
2answers
20 views

Persist old ActiveRecord model attributes

I have a model called Client with 3 attributes: name, phone and email. At the beginin, I have an instane of Client with some values: Mark, +54261334455 and [email protected]. Then I change these values ...
0
votes
0answers
16 views

Ruby on Rails Parentage and lineage association after the fact

i'm trying to build a genetics tracking bulk, where the parentage and children can be assigned after the animals are put into the system, currently building prototype where :pins have an associated ...
0
votes
1answer
37 views

CRUD no longer displaying content after adding new model

I've just created a comments model and for some reason my song submissions are no longer showing in the song#index. In short, initially I had just a songs_controller with the typical CRUD ...
0
votes
1answer
16 views

Ruby on Rails Thumbs_up Redirect to User Sign In

I'm getting this error when a user tries to vote without first being signed-in: undefined method `vote_for' for nil:NilClass I have a regular "Post" scaffold and the users are voting on posts. ...
0
votes
1answer
17 views

jquery rails with twitter bootstrap does not render

I have made some progress here: rails 3 does not render jquery properly With my test application, it works OK but with twitter bootstrap loaded - it does not work and it shows the drop down menu ...
0
votes
0answers
9 views

Delayed_Job process same job type with multiple workers?

I am using the delayed_job module and foreman for background processing. I have a job called "ImportTitlesJob". I want to process queued jobs of this job type 2 at a time. I am using upstart to ...
0
votes
0answers
15 views

Rails 3.2.13 Association destroy. Listing image records destroyed but image files aren't removed

I have a User model, listing model, and listing_images model. User model: has_many :listings, dependent: :destroy has_many :listing_images, through: listings Listing model: has_many ...
1
vote
1answer
19 views

Use better_errors as debugger?

Is it possible to use the excellent better_errors gem as a debugger? In other words, can I add code to make it drop into the better_errors "error" page, poke around, inspect things, and then ...
0
votes
2answers
19 views

user can only delete/edit what he/she posted? not all posts

How do I make it so the user can only delete/edit what he/she posted? and not all posts? My current songs_controller only has authorization which allows users to edit, destroy, update once they're ...
0
votes
1answer
27 views

rails 3 does not render jquery properly

i have https://github.com/tkrotoff/jquery-simplecolorpicker-rails and i have tried https://github.com/tkrotoff/jquery-simplecolorpicker in plain HTML and the plain HTML worked. I had swapped the code ...
-1
votes
0answers
10 views

How do I combine a select list and a text field in this Rails form?

I'm having trouble understanding how a basic "nested model" works in a view, despite extensive review of SO, RailsCasts, and RailsGuides. This is using Rails 3.2.2 and ruby 1.9.3p392. I am relatively ...
0
votes
0answers
19 views

Rspec 2.10.1, Rails 3.2.13 - ActionController::RoutingError: No route matches

I'm writing an rspec test that sends a JSON via POST to a member route end point. But I'm getting a "no route matches" error when I do so. I'm not sure if there's something I need to add because ...

1 2 3 4 5 3030
15 30 50 per page