javascript - how to get access to ruby on rails database with coffeescript -
this 1 simple. lets have model
class post < activerecord::base attr_accessible :author, :content, :title end
and want instance variables of class coffeescript, put array, , work on them. there special method out there?
highly debatable i'd advise use gon quick setup. it's described in this railscast.
later you'd rather ajax calls.
Comments
Post a Comment