Ruby on Rails version 3.2.0 released at January 20, 2012. Use this tag for issues related to development in Ruby on Rails version 3.2.0.

learn more… | top users | synonyms

3
votes
3answers
449 views

Ruby on Rails Best pratices - Big Controller vs Small Controller

I need some informations for the best pratices in Ruby on Rails, especially with Controler who have to do a lot of things, so, a simple "show" action is now up to lines. I know, it's not really good, ...
82
votes
8answers
12k views

No secret option provided to Rack::Session::Cookie warning?

I am running Rails 3.2.3, Ruby 1.9 under Fedora 17. I get this warning, when I run rails s, and how do I fix? SECURITY WARNING: No secret option provided to Rack::Session::Cookie. This poses ...
9
votes
1answer
2k views

Rails console 'y' helper returns NameError rather than yaml-formatting output

I'm trying to use y object in Rails 3.2.6/Ruby 1.9.3 console to get nicely formatted yaml output for an ActiveRecord object, but for some reason it isn't working for me. I've used it in the past, but ...
19
votes
4answers
17k views

Rails 3.2 undefined method `key?' for nil:NilClass

For some reason I started to get this error after switching to Rails 3.2. I guess it has something to do with acl9 plugin, which I tried reinstalling, but nothing changed. I moved the plugins to ...
1
vote
2answers
1k views

PostgreSQL Permission denied Error on Unix domain socket “/var/pgsql_socket/.s.PGSQL.5432” - Lion Server 10.7.3 or Lion Server 10.7.4

I recently had major permission problems using Lion Server where permissions would change on folders at will. During this time I had started getting the following error when trying to do a rake ...
1
vote
1answer
849 views

save_and_open_page (capybara / launchy) stopped working in a project - error

Trying to debug a section of specs that I cannot get to work when merging Rails two projects. I have deleted my Gemfile.lock and re-installed from scratch, I have run bundle update on specific gems, ...
48
votes
2answers
7k views

Use rvmrc or ruby-version file to set a project gemset with RVM?

I use RVM, the Ruby Version Manager to specify a Ruby version and a set of gems for each of my Rails projects. I have a .rvmrc file to automatically select a Ruby version and gemset whenever I cd ...
5
votes
2answers
1k views

SimpleCov reports not generating in Rails 3 app after running RSpec tests with Spork

I just installed the SimpleCov gem to generate code coverage reports on my Rails 3.2.6 app, and it works great with RSpec, just not with Spork. I am able to get the desired correct report by running ...
9
votes
2answers
2k views

rake assets:precompile attempting to connect to database

I'm attempting to debug why my application is attempting to connect to my database when I run rake assets:precompile --trace. I'm probably missing something in the stack trace...anyone see the ...
4
votes
2answers
351 views

How to pass the javascript value as json object to the controller in ruby on rails?

I have got a task to do knockout.js using ruby on rails. I want to send the javascript value to the controller. My index.html.erb is <%= javascript_include_tag "knockout-2.2.0","country-state" ...
2
votes
3answers
94 views

undefined method `email' for nil:NilClass in Exibe the mail of table Father

I have a problem, i make this atribbuition i comment model: class Comment < ActiveRecord::Base attr_accessible :comment belongs_to :post belongs_to :user and this in user model class User ...
1
vote
2answers
2k views

Display inline errors with simple_form in a Bootstrap Ajax modal

I've found similar StackOverflow questions here and here but still can't get this to work. I'm using Rails 3.2.8, SimpleForm 2.0.4, and Twitter Bootstrap 2.1.1 (via the bootstrap-sass gem 2.1.1.0). ...
0
votes
1answer
127 views

How do I use my Jquery plugin in the Rails asset pipeline?

My company introduced a way to use social share buttons without providing tracking data to the social sites on page load: jquery.socialshareprivacy. How can I use it in a Rails 3.2 asset pipeline?
0
votes
1answer
31 views

Scope that has three levels deep joins

My Program table has many Measures My Measure table has many Targets My Target table has a column called "money" My ActiveRecord query looks like this: @programs2 = Program.includes([measures: ...
0
votes
1answer
253 views

why image-path is not resolved in scss?

in my app, I have a scss file, resulted from a gem, resident in the gem folder out side of my app project folder in works just fine locally, I have the path to images correct, like this: (copied from ...

1 2 3 4 5 12
15 30 50 per page