Rails-api and rendering html pages -


i using rails-api gem api project....

i have 2 or 3 webpages how do html make ajax call , consume jsons

where can keep html pages , render it..

rails::api subset of normal rails application, created applications don't require functionality complete rails application provides. bit more lightweight, , consequently bit faster normal rails application. main example usage in api applications only, don't need entire rails middleware stack nor template generation.

you can start adding middleware , subframeworks rails-api - turning lean , mean racecar minivan.

a better solution may create separate rails app serves html pages , has full rails package.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -