Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 579375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:21:38+00:00 2026-05-13T14:21:38+00:00

This is all new territory for me, but I am working through a Rails

  • 0

This is all new territory for me, but I am working through a Rails book that was written before start_form_tag was deprecated and I am running into problems with the books example code using remote_form_tag. I have the other forms working but can’t get this one up and running. Here’s the code:

<h1>Categories</h1>

<ul id="category_list">
    <%= render :partial => 'category', :collection => @categories %>
</ul>

<br/>

 <p id="add_link"><%= link_to_function("Add a category", "Element.remove('add_link');       
         Element.show('add_category')") %></p>

 <div id="add_category" style="display:none;">
     <%= form_remote_tag(:url => {:action => 'new'}, 
                     :update => "category_list", 
             :position => :bottom, 
                 :html => {:id => 'category_form'}) %>
       Name: <%= text_field "category", "name" %>
       <%= submit_tag 'Add' %>
    <%= end_form_tag %>
 </div>

This is exactly how it appears in the book, and doesn’t compile. I’ve tried changing to match the form_tag blocks but the form enclosed by the “add_category” div never shows up.

Thanks!

UPDATE: Just found that it doesn’t appear that the prototype script is not getting loaded.
both the remove and show methods on Element are showing up as undefined in Firebug. I am not sure why it is not showing up though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T14:21:38+00:00Added an answer on May 13, 2026 at 2:21 pm

    I left out the = sign when including the javascript libraries in standard.html

    Line should be this:

    <%= javascript_include_tag :defaults %>
    

    Vote to close this question?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello i am little new to all this but i want to know that:
I am new to all this, but here goes: There is an apple file
This might be a stupid question but I'm new at all this. I want
I'm sure this is easy for you all but this is all new to
I've never worked with a db before, so this is all new to me.
I've never used PHP or MySQL before, so this is all new to me.
I haven't had to tackle a login process before so this is new territory
New to all this so forgive my ignorance. I am trying to figure out
i am pretty new to all this Monodroid stuff. I am porting my Windows
I am very new at all this c# Windows Phone programming, so this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.