Hi Colin

On Tue, Sep 29, 2009 at 3:56 PM, Colin Law <[email protected]> wrote:

>
> 2009/9/29 Sandip Ransing <[email protected]>:
> > @mukund
> >
> > sounds good...but little tedy task.
> >
> > @colin
> >
> > /views/sessions/new.html.erb
> > <% form_tag( session_path, :builder => DavesFormBuilder ) do %>
> >       <p><label for="login">Login</label><br/>
> >       <%= text_field_tag 'login' %></p>
> >       <p><label for="password">Password</label><br/>
> >       <%= password_field_tag 'password' %>
> >       <%= submit_tag 'login'%>
> > <% end %>
>
> Nearly there, and the error is?  on which line?  with the trace.
>
>
Error trace is as follows

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.<<

Extracted source (around line *#7*):
4: <h2>Sign into System</h2>
5: </div>
6: <div class="data">
7: <% form_tag( session_path, :builder => DavesFormBuilder ) do %>
8: <p><label for="login">Login</label><br/>
9: <%= text_field_tag 'login' %></p>
10: <p><label for="password">Password</label><br/>

Application trace
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/text_helper.rb:32:in
`concat'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_tag_helper.rb:467:in
`form_tag_in_block'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_tag_helper.rb:39:in
`form_tag'
/home/demo/ace-trunk/app/views/sessions/new.html.erb:7:in
`_run_erb_app47views47sessions47new46html46erb'




> Colin
>
> >
> > url => http://localhost:3000/session/new
> >
> >
> > --Sandip
> >
> > >
> >
>
> >
>

Sandip

-- 
Ruby on Rails Developer
http://funonrails.wordpress.com
www.joshsoftware.com
http://brandpotion.com (Latest project released)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to