maybe it is expecting this??
{:review => {:site_id => 10000000000000005}}
On Sun, Jan 3, 2010 at 6:45 PM, Vincent P <[email protected]> wrote:
> I have a RESTful :new method to present a form. I have implemented
> this new method to use a params value params[:site_id]. For example,
> the URL to this form would be : http://localhost:3000/reviews/new?site_id=1005
> Now I need to test this new method. How do I put in the params value
> in the test? The following line does not seem to do the work.
>
> get :new, :site_id => 1005
>
> thanks.
>
> --
>
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.