Please help me ------ Mapping an item to article

Hi everybody,

I have a form like this

New menuitem

<% form_for(@menuitem) do |f| %>
<%= f.error_messages %>

<%= f.label :title %>
<%= f.text_field :title %>

<%= f.label :alias %>
<%= f.text_field :alias %>

<%= f.label :article_id %>
<%= f.text_field :article_id %>

<%= f.label :published %>
<%= f.check_box :published %>

<%= f.label :link %>
<%= f.text_field :link %>

<%= f.submit 'Create' %>

<% end %>

<%= link_to ‘Back’, menuitems_path %>

for this <%= f.text_field :article_id %> i want to have a select button
(browse) ,when clicked on that should open a popup to select the
article.
When i select a article from the list of articles, its id is stored in
the
table and when i clicked on the item i need to display the article.

Please help me. I would be really thankful if you can guide me on this.
Please show me a way to proceed further.

maybe ajax is satisfied.

2009/11/12 Rails ROR [email protected]

<%= f.label :title %><br />

<%= f.submit 'Create' %>

Please help me. I would be really thankful if you can guide me on this.
Please show me a way to proceed further.


tommy xiao
E-mail: xiaods(AT)gmail.com