Top "Ruby-on-rails-2" questions

Legacy version of the Ruby on Rails web development framework.

Rails ActiveRecord date between

I need to query comments made in one day. The field is part of the standard timestamps, is created_at. …

ruby-on-rails rails-activerecord ruby-on-rails-2
How I can check if an object is null in ruby on rails 2?

I want to check when my object @objectname is not equal to null to show the values of the @objectname …

ruby-on-rails ruby ruby-on-rails-2
undefined method `source_index' for Gem:Module (NoMethodError)

I'm running a Rails 2.3.5 application and upon running script/server I am shown the following: ./script/../config/../vendor/rails/railties/…

ruby-on-rails ruby-on-rails-2
mysql2.so: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory

I am trying to run a Rails two app with Ubuntu 10.04 server, sphinx, myql2 version 0.2.7 and percona server 5.5 (Myslql 5.5). mysql2 …

mysql ubuntu mysql2 ruby-on-rails-2 libmysql
ActiveRecord Count to count rows returned by group by in Rails

I looked around and couldn't find any answers to this. All answers involved counts that did not use a GROUP …

ruby-on-rails activerecord ruby-on-rails-2
Routing with an optional parameter

I added in the route file: map.show_book "/show_book/:name/year/:year", :controller => "book", :action => "show_…

ruby-on-rails routing rails-routing ruby-on-rails-2
Rails: get #beginning_of_day in time zone

I have a default time zone setup for the rails application. And an instance of the Date object. How can …

ruby-on-rails date timezone activesupport ruby-on-rails-2
Display a checkbox list instead of multiple select

I have a model MyModel with a serialized attribute a, describing an array of symbols. This code works : <% form_…

ruby-on-rails ruby-on-rails-2
Rails Flash.now not working

I have a view from which I make an ajax request to the controller and after the action is successfully …

ruby-on-rails ruby-on-rails-2
How can I iterate through an array in rails view?

I did a query in MySql but is working in Rails and mysql2 gem. Here is the information: http://sqlfiddle.…

ruby-on-rails ruby ruby-on-rails-2 mysql2