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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -