On 17 Mar., 07:31, Andrew Timberlake <[email protected]>
wrote:
> I just add a link next to the submit tag labelled 'cancel' with a link
> to an appropriate page.
> Technically a button should be used for an action while cancelling is
> technically the absence of an action.
I totally agree. Using a link instead of a button has several
advantages. That the user does not expect anything destructive to
happen when clicking a link, is one. And you don't need to clutter
your controller with logic for the cancel button. The only thing you
need is a simple #link_to refering to an appropriate page.
--
Cheers,
David Knorr
http://twitter.com/rubyguy
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---