Hi,

After trying without any success, i need your help.

I wanted to know how can i add a LINK_TO link in form override for
association column.

So, to make you understand my problem, i suppose that i have 2 tables
agence and organisation.

In models i have in agence.rb a belongs_to:organisation  and in
organisation.rb a has_many:agences

But i don't want to use the crud for association column in my form, so
i am using the form_ui method for my association columns or form
override. And may be someone want to select an organisation that
does'nt existe in the collection_select list.

I wanted to add a link for creating a new organisation in the same
page in which we are creating the new agence.

In my _organisation_form_column.rhtml, i want to have something like
this:
     <%= link_to "New organisation", :controller =>
'organisations',  :action => 'new' %>
which render the form new organisation at the bottom of the form
creating the new agence.

Thanks for your help.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to