On Apr 12, 4:01 pm, Jack Yang <[email protected]>
wrote:
> Thanks Fred. I haven't try using submit_to_remote, but I think you are
> right.
> I just changed the form back to normal form without ajax. This time the
> "Publish" button works correctly but the "Save" button behaves weird.
> The first time I click it, it saves the post. But after the post is
> saved, if I click save again it will "Publish" the post. Why?

Have you looked in your logs to see what is being submitted ? (ie is
the browser doing something weird or is it your code ?)

Fred

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