@steveklabnik instance variable copying is probably the biggest problem with Rails.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik ask them if they'd prefer using assigns[:name_in_template] = value over @name_in_template = valueThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik Shows that he/she knew Ruby before Rails and that the behavior should be better explained. -
@evanphx yep, lots of previous experience with other languages - Show replies
New conversation -
-
-
@steveklabnik that and why private in controllers implies a filter, not an action. Wouldn't an 'actions do' DSL make more sense?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik Rails is a hamburger: you know it’s not good for you, but want it anyway. Spinach in a burger makes no sense, but it happens.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik Good point. Could get around that by always using partials: render :partial => 'my_partial', :locals => { :var => var }Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik But realistically the scope leak is probably a result of convenience. - End of conversation
New conversation -
-
-
@CoderTrader we did ruby firstThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.