On 31 Oct 2008, at 09:56, Andrea Campagna wrote:

>
> Frederick Cheung wrote:
>> On Oct 31, 9:38�am, Andrea Campagna <[EMAIL PROTECTED] 
>> s.net>
>> wrote:
>>> Hi to all,
>>>
>>> I'd like to pass with a link to values inside some form. I've read  
>>> in
>>> other posts that it's possible if i include the forms inside a html
>>> <div>...
>>
>> That sounds made up to me. Links (without javascript help) don't
>> submit forms. if you have to have a link that submits a form, by far
>> the easiest way is to have a link whose onclick is $
>> ('some_form').submit() (link_to_function makes this easy).
>>
>> Fred
>
> hi Fred,
> this is the topic http://www.ruby-forum.com/topic/146247#new where  
> i've
> read the suggestion...

That's just wrong. Probably confused by the fact that link_to_remote  
does take a :submit option (which should be the id of a form element)

Fred
>
> So i was searching the right syntax for doing that, i'll try to know
> more about link_to_function, but i'd like to know if it's really
> possible in the other way, cause i've found more than one person that
> suggest that way...
> Tanks for your reply

> Andrea
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


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