pw wrote in post #1068883: > I have no idea how to write clear, confident front-end code for my rails > app. > > 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 (as well as JavaScript). I think you're probably right that a JS 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 Test::Unit, RSpec or Cucumber. For unit testing JavaScript there is a nice tool called Jasmine for that. http://pivotal.github.com/jasmine/ 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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

