benwbrum / fromthepage-rails_3

GNU Affero General Public License v3.0
0 stars 0 forks source link

Observe Field #1

Open emacadie opened 11 years ago

emacadie commented 11 years ago

This is in "app/views/article/_article_categories.html.erb", currently commented out. It is part of a link that displays the categories for an article in a tree format. A suggestion: http://stackoverflow.com/questions/3846089/observe-field-in-rails-3 It adds that subject to a category without having to do an actual submit.

emacadie commented 11 years ago

The Rails 2.38 API page: http://api.rubyonrails.org/v2.3.8/classes/ActionView/Helpers/PrototypeHelper.html#M002175

emacadie commented 11 years ago

Also read http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-technique/ and http://www.simonecarletti.com/blog/2010/06/unobtrusive-javascript-in-rails-3/

emacadie commented 11 years ago

Use the "making_progress" branch.

emacadie commented 11 years ago

Here is a URL that does it: http://localhost:3000/article/show?article_id=8026&ol=a_alist_cats_art

emacadie commented 11 years ago

Go to an article page, click the edit tab

emacadie commented 11 years ago

Look in views/article/_article_categories.html.erb

emacadie commented 11 years ago

Yet another link: http://railscasts.com/episodes/205-unobtrusive-javascript

emacadie commented 11 years ago

Observe Field in Rails 2.3.8 API http://api.rubyonrails.org/v2.3.8/classes/ActionView/Helpers/PrototypeHelper.html#M002175

emacadie commented 11 years ago

http://api.jquery.com/change/

emacadie commented 11 years ago

http://www.slideshare.net/AlanHecht/jquery-and-ajax-with-rails

emacadie commented 11 years ago

https://github.com/rails/jquery-ujs/wiki/ajax