Hi
I have
Create
Could anybody say get the same above using railshelper I tried
f.submit “Create”,:class => ‘class1’ But not correct
Thanks
Tom
Hi
I have
Create
Could anybody say get the same above using railshelper I tried
f.submit “Create”,:class => ‘class1’ But not correct
Thanks
Tom
2010/1/25 Tom M. [email protected]:
Hi
I have
CreateCould anybody say get the same above using railshelper I tried
f.submit “Create”,:class => ‘class1’ But not correct
What is not correct about it? What does it generate? If you get an
error show us the code around it.
Colin
Colin L. wrote:
2010/1/25 Tom M. [email protected]:
Hi
� I have
Create
Not an error f.submit creates the html as
But what I need is exactly
Create
If directly use this no problem But what I ould like to know an
alternative in railshelper
Tom
Tom M. wrote:
Colin L. wrote:
2010/1/25 Tom M. [email protected]:
Hi
� I have
CreateNot an error f.submit creates the html as
But what I need is exactly
CreateIf directly use this no problem But what I ould like to know an
alternative in railshelper
Tom
You also have button_tag but this won’t create an html tag, it
does though create a simple form wrapped around an input which means
your backend gets a consistent result regardless of the browser
( is a bit inconsistent depending on the users browser).
You also have button_tag but this won’t create an html tag, it
does though create a simple form wrapped around an input which means
your backend gets a consistent result regardless of the browser
( is a bit inconsistent depending on the users browser).
oops i meant button_to …
Tom M. wrote:
Hi
I have
CreateCould anybody say get the same above using railshelper I tried
f.submit “Create”,:class => ‘class1’ But not correct
Try content_tag – or just write the literal HTML.
Thanks
Tom
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Have you tried:
:html=>{:id => ‘submit’,:class=>‘calss1’}
works with my submit_to_remote.
Chris H. wrote:
Have you tried:
:html=>{:id => ‘submit’,:class=>‘calss1’}
That won’t do it. The solutions I provided are the only correct ones.
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
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