I was wondering how what you do when you have some serious client-side
to do on a Rails app.
Good practice tells us to start from testing, so let’s say we either:
- Have Implement a bare-bones html (non-ajax) version of the feature
an outside-in testing process already.
- We don’t (argh) have or follow a test-driven process.
Anyway, the point is, once you have the basic done, you then want to
on the GUI. The client wants it to look and behave in a specific way,
you go and start putting your awesome client-side skills into action.
Form my experience, if the application is still small, it’s a no brainer
just go and modify the ERB/HAML/CSS/SASS as needed.
However, when the app gets stuffed with more objects, doing client-side
is just too painful (requests can take several seconds).
What I like to do when a lot of client-side work is expected is to
a separate folder with styles and the view(s) needed copied (erb
course), use placeholder data where needed (I might also test-drive the
the equation, which makes the process smoother.
How do you do it?