Displaying 3 results from an estimated 3 matches for "spectre013".
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
2005 Dec 16
10
Associative arrays
I just started playing with rails this week and am working on porting our
existing website to rails
in our navigation we have a list that has the days of the week that link to
the articles for those days.
this seems to be working when I had it in the template it would give me the
array I was looking for so I decided to move it to the helper so that I
could use it on all my templates.
2005 Dec 18
3
undefined local variable in partial
i can''t get rid of the following error:
ActionView::TemplateError (undefined local variable or method `order_line''
for #<#<Class:0xb75b2090>:0xb75b1f28>) on line #13 of
app/views/admin/_order_line.rhtml:
10:
11: <tr valign="top">
12: <td>
13: <div class="olnamebox"><%= h(order_line.name) %></div>
14: