News for hackers. Stuff that matters.
Re:Existential crisis at Railsconf by monsterix on Wednesday April 22, 2015 @10:35AM (#9420699)
So far from what I've seen is that most frontend frameworks go inside one of the directories inside rails. Nice, clean and tight integration. :)
Re:Existential crisis at Railsconf by kailuowang on Wednesday April 22, 2015 @10:40AM (#9420742)
Yes, because having Rails serving the single page application front-end makes total sense.
Re:Existential crisis at Railsconf by some1else on Wednesday April 22, 2015 @11:56AM (#9421322)
The static assets are actually served by nginx. In cases where some page data is dynamically generated by Rails, it's nice to keep both pieces of code together in a mono-repo. That said, when I recently extracted a Backbone app from the Rails codebase (retrofitted Grunt.js), I decided to ditch the public/symlink approach and split the app over 2 subdomains. What I find now is that I like the mono-repo approach, and would be fine with cramming both codebases together, while having granular and global deployment scripts.
Re:Existential crisis at Railsconf by t4nkd on Wednesday April 22, 2015 @03:52PM (#9423101)
I actually do this: I ended up leveraging sprockets to get some environment interpolation (like API locations) and easy preprocessing languages (e.g. coffeescript). Also, by doing this, I don't have to make everything single-page. I can build one off pages if I want to (not that it happens much, but, still). Also I get some nice bits for logging, metric agents integrate easily, etc. I realize I didn't need it, but, there really wasn't a down side to using it, except for that some views ended up a little fragmented when using angular templates in public/ versus actual views... Even then, it was a decent learning experience and I'd probably do it again just for the interpolation and sprockets asset building.
Re:Existential crisis at Railsconf by monsterix on Wednesday April 22, 2015 @11:36AM (#9421178)
Is isomorphic such a bad idea?