Re: [Rails] Re: Re: Spreadsheet MVC
On 15 December 2010 15:01, Marnen Laibow-Koser <lists@ruby-forum.com> wrote:
>
> *All* views are just data stored in a file. The point is that --
> whether meant for export or direct display -- this is, as far as Rails
> is concerned, a presentation of model data, and so is arguably a view.
One could equally well build a model around the spreadsheet, one could
even provide an ActiveRecord interface to the spreadsheet.
In principle, though, I agree with you. If a request of some sort
comes in and the response is spreadsheet data going out then it does
fit under the View umbrella. If, however, one also has an html
response then one effectively has two 'views' generated, in this case
I do not think it would be appropriate to generate the spreadsheet
file inside the html view generation code, if that is what the OP
intended.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home