Ramdon tips for Rails

  • MVC as a constraint
  • Over do MVC
  • Don’t put any code in the view
  • Don’t do any DB operation in the controller
  • Set Default Values in Methods : Avoid unexpected behaviour.
  • Simple Hash as Default Method Parameter : This form allows you to add functionality to methods without breaking existing calls
  • Helpers are hard to test, its will turn Rails into PHP
Advertisements

2 comments so far

  1. Samuels (Eminem) “Nothin’ On You” — Philip Lawrence, Ari Levine, Bruno Mars & Bobby Simmons Jr.

    –LINK REMOVED –>Grammy Nominations 2011<. Juni, als Bombenanschläge in Kathmandu und anderen Städten Nepals acht Tote und 22 Verletzte forderten.

  2. Family Guy Fan Fiction on

    Let’s do it. The games are smooth, cute and suitable for children; both in regards to game play and graphics. scrutiny of auditors.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: