views:

73

answers:

4

I'm a Django person going into Rails, and I want a guide that shows me all the popular "conventions".

For example: plurality, _form.html.erb, stuff like that.

Can someone list them here? Or a webpage?

A: 

I'm not sure if anyone can list them, at least off the top of their heads. "Conventions" in rails just means the default behavior for a given feature. Most features have sane conventions, and most likely what you were intending to do. For example, in Rails 3, ERB's <%= something %> construct automatically escapes HTML, because 99% of the time that's what you'll want to do.

I suggest just keep learning. With conventions, there's a lot less to remember when you're learning because of these conventions. Conventions just become "the rails way" and if you ever need to do something outside of them, then you look up how to do it.

AboutRuby
A: 

You can refer the site http://www.rubyonrails.org This will help you get around the concepts of RoR

Rohit
And http://guides.rails.info/ too.
floatless
+1  A: 

If you want the official conventions, then nothing beats the original Rails book: Agile Web Development with Rails

But if you want the unwritten conventions, here's a good start: acts_as_good_style

Taryn East
A: 

I'm finding rails-bestpractices to be increasingly useful although always read the comments as some of the advice is debatable

stephenmurdoch