I am trying to implement a status update to be used on my web
The tutorial I had followed suggested to do the following:
Create a model called post with message:text
Then rake db:migrate (so far so good – db shows new table ‘posts’)
I then need to create a controller called post
Within this there is then an index and create methods
I add the relevant view information to the views/posts directory and
all works fine.
The problem I have is, I really want this within my existing user
profile page (where a user would update their account)
To alter this, is it just a case of adding the methods to the
user_controller, and subsequent view files to the user’s view
As it stands, I can get the view to display nicely in the user’s
profile/update area, but when I hit post, I’m taken to localhost/posts
– which doesn't look too great. What I need is for this to remain in
the user profile area.