Soldato
Hi,
Starting a new project in Ruby on Rails and need some adice as I'm completely new to Ruby (and Rails).
The architecture for our system is to have a split between the back-end (database operations, etc.) and front-end (web stuff).
What's the easiest way of getting the front-end talk to the back-end?
Initial attempts seem to be REST based (from what I understand) but this isn't proving as successful as I was hoping. The back-end seems to return JSON that is then parsed into a Hash, but all the html.erb files seem to expect an object and i'm not sure how to get this.
As I said I'm new to Ruby so all I've done so far is the basic stuff as described by the first tutorial on guides.rubyonrails.com.
Thanks for any help/advice/suggestions.
Starting a new project in Ruby on Rails and need some adice as I'm completely new to Ruby (and Rails).
The architecture for our system is to have a split between the back-end (database operations, etc.) and front-end (web stuff).
What's the easiest way of getting the front-end talk to the back-end?
Initial attempts seem to be REST based (from what I understand) but this isn't proving as successful as I was hoping. The back-end seems to return JSON that is then parsed into a Hash, but all the html.erb files seem to expect an object and i'm not sure how to get this.
As I said I'm new to Ruby so all I've done so far is the basic stuff as described by the first tutorial on guides.rubyonrails.com.
Thanks for any help/advice/suggestions.