1 2 3 4
def upgrade_and_restart @myvocabulary.upgrade nextmyvocabulary = Myvocabulary.draw(current_user.id, params[:position], @myvocabulary.vocabulary.lesson.proficiency.id) ...
Ruby shorten long variable names...
by dive.myopenid.com,
June 22, 2009 18:52,
5 refactorings, tagged with rails, models, variable names
I wonder how you make a lin...
1 2 3 4
class Chat < ActiveRecord::Base KINDS = [[:office.l('Oficina'),0],['Personal',1]] ...
Ruby Multilingual Model Options
So far this works a treat, ...
Assume you have a model, li...