I am having difficulty understanding the problem, not knowing about forex
rates.  Could you explain the model structure?  I know that controllers do
not need to map to models but I think it will help me to understand the
structure.

Colin

2009/5/25 James Byrne <[email protected]>

>
> I wish to allow users to view collections of foreign currency exchange
> (forex) rates in the following manners:
>
> 1.  All currencies, only the most current forex rate.
>
> and
>
> 2.  One currency, the N most recent rates.
>
> I seem to have several choices here:
>
> A. Use the controller for the rates model and use the index method for
> case 1 and the show method for case 2.
>
> B. Use the controller for the rates model and use the index method for
> case 1 and create a new method, current, for case 2.
>
> C. Use two controllers and use the index method in the controller for
> the rates model (forex_rates_controller) to list all currencies and all
> rates, which is generally the default index behavior; while in the
> second (current_forex_rates_controller) use index and show as specified
> in alternative A.
>
> Are there any strong preferences for going one way over the other?
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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