RailsCasts Pro episodes are now free!

Learn more or hide this

Ernest Surudo's Profile

GitHub User: elsurudo

Site: http://elsurudo.com

Comments by Ernest Surudo

Avatar

Great screencast, thanks Ryan!

One problem I'm having (perhaps someone here has had similar?) is that my tests run twice, using the provided Rake task.

Basically, my model tests run, then my helper tests, and then ALL my tests (duplicating the aforementioned model and helper tests).

Anyone know what's up? I'm by no means a Rake guru...

Avatar

Those will only work in development environment, so there's no need to worry about that in production.

Avatar

Engines are just a way to package up part of a rails app, and then use it in multiple projects (either your own, or open-source, etc.)

For example, let's say you made a nice e-commerce system. If you package it up as an engine, other people can simple mount it into their rails app (say at the "/store" path), and voila, they now have a store! Very elegant.

Avatar

Thanks! Now, using this method I don't need to define a wrapper class in my application_helper.rb

However, how can I add (say) a CSS class to all forms generated with this form builder?

I tried overriding the "initialize" method and editing the options[:html] hash, but this got me nowhere.

Any ideas?