Ruby on Rails Friday, July 31, 2015

Thiago Cifani wrote in post #1177106:
> You can have 2 controllers to input data, the basic pages can represent
> actions in a site controller and post can be another one just as session
> controller. Any representation of storage data must be related a some
> model on rails, you will need to have user, post and other database
> related record.
>
> Enviado do meu iPhone

Thank you very much for your reply Thiago.

I am still a bit confused. So according to you, the layout will be like
the followings?:

1. Create two controllers for the two types of posts for
edit/create/delete posts respectively;
2. Create three models corresponding to 'User', 'microposts' and
'posts'(I am not really familiar with the terms. Database related
records are just models right?)
3. Create the 'page' controller to control the static pages;
4. Create a session controller to manage the posts

Is it what should I do?

Thank you very much

Regards
Lawrence

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d2850d48e7ae673f7ddd048b4a5dfda7%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment