Yeah thanks for the help!
By the way do you know how I can get the "format.csv { render :csv =>
@logs }" part to work? I have tested it on an index page and that
works, but when I try it on this admin page it says it doesn't
understand the URL. I have set a direct path to the admin page instead
of the standard "controller/action" path in the routes.rb file, but
even if i go through the "controller/action" path it still says it
can't find it. Is it because of that direct path in the routes.rb that
it's giving me the error?
On Tue, Mar 23, 2010 at 11:24 AM, Colin Law <clanlaw@googlemail.com> wrote:
> On 23 March 2010 15:20, Robin Ting <civ2boss@gmail.com> wrote:
>> Well that's strange then, because it still gave me a unexpected nil
>> found error when I use that. Actually now that I think about it, I
>> might have been using it on params[:find_dates]['start_date(1i)']
>> instead of just the params[:find_dates].
>
> That would explain it, params[:find_dates]['start_date(1i)'] == nil
> would generate an error if params[:find_dates] is nil because it would
> attempt to evaluate nil.['start_date(1i)'] first.
>
> Colin
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment