Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##In model
- def auth_valid=(user_name)
- user_ob = User.find_by_login user_name
- if user_ob.nil?
- #from here i want to go back to view
- else
- self.user_id = user_ob.id
- end
- end
- ##In view
- <%= text_field_tag 'author[auth_valid][]' %>
Add Comment
Please, Sign In to add comment