News for hackers. Stuff that matters.
Re:Choosing Ruby on Rails for web development project in 2019 by throwaway_x13zd on Wednesday May 29, 2019 @09:45AM (#20040040)
Devise[1] alone makes it worth using rails for many webapps. Throw in things like simple form[2] and will paginate[3] and it's incredible how much you can get done cleanly and quickly. Using something like intercooler.js, you can build a solid modern web app in a fraction of the complexity of most systems today.

1 - https://github.com/plataformatec/devise

2 - https://github.com/plataformatec/simple_form

3 - https://github.com/mislav/will_paginate

Re:Choosing Ruby on Rails for web development project in 2019 by fouc on Wednesday May 29, 2019 @11:01AM (#20040973)
intercooler over turbolinks? or together? not quite sure what intercooler really brings
Re:Choosing Ruby on Rails for web development project in 2019 by throwaway_x13zd on Wednesday May 29, 2019 @12:52PM (#20042492)
intercooler just gives you finer grained control over your ajax requests, which makes it easier to implement stuff like active search, etc.

turbolinks is great if you just want a faster pure web-app.

I've used both successfully independently and in tandem.

Re:Choosing Ruby on Rails for web development project in 2019 by fouc on Wednesday May 29, 2019 @08:41PM (#20047246)
That's interesting! I do some ajax with the js.erb files, but I honestly find that it's pretty messy & gross. Maybe I could eliminate those .js.erb files with intercooler.js (or clean them up).

Do you find that intercooler lets you avoid using .js.erb files altogether?