I have routes.rb:
resources :user
#that have default
#      path        verb
# user_index get     "user#index''
#                         post    "user#create"
#new_user     get       "user#new"
for moment i using method "new" as new.htmk(form login)&"create" as process get 
data from db.
<%=form_for :blog,url: user_index_path do lbl%>
def new
@blog   = Box.new
#procces login
def create
@b =Box.find_by(search_params)
if i try make routes like this
get '/user/login',to: "user#login"
that only for view html verb get,how make process it that verb post like 
deafult routes? thank you.

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+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to