On 2 September 2010 16:37, Charlie B99 <lists@ruby-forum.com> wrote:
Could you not top post please - insert your comments at the
appropriate place in previous mail, it makes it easier to follow the
thread, particularly for those that find this thread in the future.
Thanks
> Colin, thanks so much for all your input. As you can see, I'm just
> muddling my way through all this, and all of your comments are very
> helpful. I will go through them more when I get to the office...
>
> "remaining seats" = schedule.capacity - number of approved requests.
> So, if a schedule has a capacity of 10, and 8 requests with state_id = 3
> (approved), then there are 2 available slots before the capacity reaches
> 0 and no more requests can be accepted.
>
> Can I do request.schedule as a find in 2.3.5 or is that a 3.0 feature?
Most certainly you can. I think maybe you would benefit from reading
the rails guides at http://guides.rubyonrails.org/v2.3.8/ Those will
be ok for 2.3.5 (why are you not using the latest 2.3 I wonder?).
Particularly Getting Started, ActiveRecord Associations, Routing, and
Debugging.
Colin
--
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