SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member manish8n's Avatar
    Join Date
    Mar 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb error with form tag

    hi i m new to ROR

    when i m using............

    <%= form_tag 'signup_submit' %>
    <%= render artial => "signup_form" %>
    <p><input type="submit" value="Signup &rarr;" class="button" /></p>
    <%= end_form %>

    i m getting error...........
    undefined local variable or method `end_form' for #<ActionView::Base:0x36f7608>

    please help me.........what should i use with form
    manish nautiyal

  2. #2
    l 0 l silver trophybronze trophy lo0ol's Avatar
    Join Date
    Aug 2002
    Location
    Palo Alto
    Posts
    5,329
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Try not printing out your form helpers and using an end:

    Code Ruby:
    <% form_tag 'signup_submit' do %>
    <%= render :partial => "signup_form" %>
    <p><input type="submit" value="Signup &rarr;" class="button" /></p>
    <% end %>
    Last edited by lo0ol; Mar 17, 2008 at 17:58.

  3. #3
    SitePoint Guru 33degrees's Avatar
    Join Date
    May 2005
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    loOol, you forgot the "do" at the end of the first line.

  4. #4
    l 0 l silver trophybronze trophy lo0ol's Avatar
    Join Date
    Aug 2002
    Location
    Palo Alto
    Posts
    5,329
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Good call... I've updated it with the proper syntax.

  5. #5
    SitePoint Member manish8n's Avatar
    Join Date
    Mar 2008
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx a lot.......its a very helpful.............
    manish nautiyal


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •