Ruby on Rails Friday, October 28, 2011

thanks for response, code was an integer, and :code was just a key of
the session hash. But I decided in end to make this database backed.

On Oct 23, 3:19 pm, Dave Aronson <googlegroups2d...@davearonson.com>
wrote:
> On Mon, Oct 17, 2011 at 17:27, John Merlino <stoici...@aol.com> wrote:
> > THis line of code gets called multiple times and creates a hash:
>
> Before I try to figure it out further, something smells.
>
> You pass in an arg called "code", and often refer to ":code".  This
> sort of "shadowing" is Very Confusing.  If they are supposed to be the
> same thing, you've got some colons to remove (or maybe add and an arg
> to dump), else you've got an arg to rename.
>
> -Dave
>
> --
> LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
> Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
> davearonson.com (main) * codosaur.us (programing) * dare2xl.com (excellence)
> Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment