Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ayanb
on Feb 17, 2012
|
parent
|
context
|
favorite
| on:
How Basecamp Next got to be so damn fast without u...
How does this impact if you are aiming to build a JSON API too?
MatthewPhillips
on Feb 17, 2012
[–]
Double work.
brunoc
on Feb 17, 2012
|
parent
[–]
Not with Rails, afaik. Assuming the routes are consistent, you simply add a 'respond' for JSON and send the relevant chunk of the model. Easy as pie.
nkohari
on Feb 18, 2012
|
root
|
parent
[–]
That assumes, of course, that the viewmodel used to render the server-side view is identical to the model you'd return serialized into JSON. That's mostly true, but not always.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: