I'm trying to use @weekly to represent attendance for each week of the
month. I wanted to use a bit for each week, but am having no luck finding a
way to get a single bit out of the variable after it is set. I already have
this code to set the values:

    @mask = (2 ** @week_number)
    params['household']['visit']['weekly'] = (@mask && @thisweek)

Please help..


Bob <[email protected]>

--

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to