Why doesn’t this work the way it should, which is (from my
understanding)
- link something to edit
- before going to the edit page, asking ‘are you sure?’
Help.
Why doesn’t this work the way it should, which is (from my
understanding)
Help.
On 6/8/06, Dominic S. [email protected] wrote:
<%= link_to 'Edit', :confirm => 'Are you sure?', :action => 'edit', :id => product %>Why doesn’t this work the way it should, which is (from my
understanding)
- link something to edit
- before going to the edit page, asking ‘are you sure?’
:confirm belongs to html_options. It should look like link_to
‘Edit’, { :action => ‘edit’, :id => product }, { :confirm => ‘Are you
sure?’ }
Vlad GALU wrote:
On 6/8/06, Dominic S. [email protected] wrote:
<%= link_to 'Edit', :confirm => 'Are you sure?', :action => 'edit', :id => product %>Why doesn’t this work the way it should, which is (from my
understanding)
- link something to edit
- before going to the edit page, asking ‘are you sure?’
:confirm belongs to html_options. It should look like link_to
‘Edit’, { :action => ‘edit’, :id => product }, { :confirm => ‘Are you
sure?’ }
Nice, thanks.
Does anyone have a tree of nods/level/structure of where and how these
objects should go?
Thanks
On 6/8/06, Dominic S. [email protected] wrote:
–
Posted via http://www.ruby-forum.com/.
The best place to go is http://api.rubyonrails.com/ For example in your
case
you could visit:
Peak Obsession
Note that parameters are passed as hashes, so it’s important to
distinguish
between them while passing.
Regards
Rida Al Barazi
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs