Displaying 2 results from an estimated 2 matches for "find_all_by_categori".
Did you mean:
find_all_by_category
2006 Jan 12
17
Application.rb params
I need to check if a parameter is set so that I can build some information
for my application, but No matter how I format my if statement in the file "
Application.rb" it return the following error.
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]
Here is the line
if params[:day]
So we
2006 Apr 25
6
SQL WHERE equivalent in rails
What is the equivalent of the WHERE SQL condition in rails?
I''m thinkin this could be something like:
<% for product in @products where category="1" %>
but obviously the syntax is wrong.
--
Posted via http://www.ruby-forum.com/.