|
|
Code tag broken?
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
I was just trying to show some example code, and the code tags just showed up literally in the body of my post. Did the code tags get taken away?
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Oct 2002
Location: England | San Francisco
Status:
Offline
|
|
Code:
<%= button_to 'Add to Cart', :action => :add_to_cart, :id => product %>
# this generates a submit button:
# <form method="post" action="/store/add_to_cart/3" class="button-to">
# <div><input type="submit" value="Add to Cart" /></div></form>
# note id = 3 in this case
# the following has the same effect as above but w/ image submit button:
<%= form_tag :action => :add_to_cart, :id => product %>
<%= image_submit_tag product.image_url, :class => 'image-submit' %>
<%= end_form_tag %>
# <form action="/store/add_to_cart/3" method="post">
# <input class="image-submit" src="/images/auto.jpg?1156046942" type="image" />
# </form>
|
we don't have time to stop for gas
|
|
|
|
|
|
|
|
Addicted to MacNN
Join Date: Oct 2002
Location: England | San Francisco
Status:
Offline
|
|
|
we don't have time to stop for gas
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
(
Last edited by Diggory Laycock; Feb 28, 2007 at 07:41 AM.
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|