In your Controller's #new and #create methods, scope the post to be owned by
the current_user (or whatever other scheme you may be using for your
logged-in-user management).
def new
@post = current_user.posts.build
end
def create
@post = current_user.posts.create(post_params)
...
end
Hi All,
Our Client a well known Publishing House is looking for an experienced
Senior Software Engineer with strong Ruby on Rails. Also, you will manage
some of our external resources (contractors and vendors).
*Client: Education/Publishing DomainLocation: Boston, MAInterview Process:
2 matches
Mail list logo