On Tue, Jan 18, 2011 at 8:30 AM, Tim Wattenberg <
[email protected]> wrote:

> Hi folks,
> I am playing around with Ruby on Rails and, probably like most of the
> beginners, I started by writing a blog-application.
>
> My questions is, if there is a special way to build something like a
> frontend/backend structure.
> As you might (or probably) know, the frontend should just give out a
> database record and you can update or delete it within the backend.
> I could do this with two seperated models/controllers, but I wondered if
> there is a better way.
>

Yes! That is what MVC does.... your views are your 'front end' and your
models are your 'back end'. So if you have a model for Posts and a View for
Posts you already have such a structure.



>
> Looking forward to your answers.
> Thanks
> Tim
>
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

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