pw wrote in post #1068883:
I have no idea how to write clear, confident front-end code for my rails
Could you help me?
I'm really not sure what you're expecting here. You're asking no
specific question that I can discern.
For example at one point you state the following:
It starts with the controller and a lot of instance variables as I tend to move
away from RESTful-Rails.
Given Rails is designed around REST it's no wonder you're having trouble
with the framework as you "move away" from its central design.
You also mentioned having difficulties testing controller and view logic
framework may be overkill. But, that has little to do with your
difficulty in testing you're code. There are tools and techniques
available for testing all aspects of the MVC stack. Really any of the
popular testing frameworks can handle most of your needs, whether it be
nice tool called Jasmine for that.
In any case I can't really see you getting any of the answers you hope
to receive from a forum such as this one. It's far more likely that any
"advice" you get by asking such open-ended and broad-scoped questions
will serve to confuse you even further.
My advice would be to find a mentor. Preferably someone local where you
can sit down with him/her and review the solutions they've come up with.
It might also be helpful to review some open source code that does
similar things to what you want to achieve.