Displaying 12 results from an estimated 12 matches for "edit_us".
Did you mean:
editplus
2006 Feb 03
6
Go back to previous action
Hello all!
I have two views (list_1 and list_2) that show a list of users in two
different ways. In the views for these actions there is a link to edit a
specific user properties (edit_user). That works fine, except that when
I change the user I want to go back to the view that originated the
request and not to the default list (list_1).
Can anyone help me?
Best regards,
Hugo
--
Posted via http://www.ruby-forum.com/.
2008 Jan 04
2
Nested Routes + Facebook Resources
..."index", :controller=>"users"}
show_user POST /users/:id/show
{:action=>"show", :controller=>"users"}
create_user POST /users/create
{:action=>"create", :controller=>"users"}
edit_user POST /users/:id/edit
{:action=>"edit", :controller=>"users"}
update_user POST /users/:id/update
{:action=>"update", :controller=>"users"}
destroy_user POST /users/:id/destroy
{:action=>&qu...
2006 Jan 05
2
help - edit without using scaffold
...#39;, :action => ''list_users'' %>
********************************************************************
<table>
<% for user in @all_users -%>
<tr>
<td><%= user.username %></td>
<td><%= link_to("(edit)", :action => :edit_user, :id => user.id) %></td>
<td><%= link_to("(delete)", :action => :delete_user, :id => user.id) %></td>
</tr>
<% end -%>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail...
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...rsion 0.4.6 adds all the following features. To begin, enter:
gem install nokogiri assert2
== require ''assert2/xhtml'' ==
All assert{ 2.0 } dependencies are optional. If you have Nokogiri
(>=1.2.2), you can test Rails views like this:
user = users(:Moses)
get :edit_user, :id => user.id
assert_xhtml do
form :action => ''/users'' do
fieldset do
legend ''Personal Information''
label ''First name''
input :type => ''text'',...
2009 Mar 12
0
assert_xhtml - test your HTML by example
Rubies:
My quest to get the maximum coverage & diagnostics from the leanest possible
tests has reached a new level.
This is a Rails functional test on an HTML form:
user = users(:Moses)
get :edit_user, :id => user.id
assert_xhtml do
form :action => ''/users'' do
fieldset do
legend ''Personal Information''
label ''First name''
input :type => ''text'',...
2009 Sep 30
1
2 RESTful controllers for the same resource
Hi everyone I want to have two restful controllers for the same
resource (Users)
One controller (UsersController) is straight in the controllers folder
and is used for singup and so on
Then i need another controller for users which is inside an admin
folder (Admin::UsersController)
In my routes.rb i have
map.resources :users
# Sample resource route within a namespace:
map.namespace
2010 Nov 04
0
Rails routing issue
...m button it gives
me the following error:
Routing Error
No route matches "/profile"
Looking at the generated html on the initial page I see the following
form tag, so it seems the action is correctly set.
<form accept-charset="UTF-8" action="/profile" class="edit_user"
enctype="multipart/form-data" id="edit_user_1" method="post">
So what am I missing? By looking at the rake routes output, I was
assuming this would work as is. Am I thinking about my http verbs
incorrectly? Any help would be appreciated.
--
You received th...
2006 Jan 03
7
best authorization?
Hello,
I want to allow some users to manage other user accounts, but do not want them to manage the admin account.
I have tried auth_generator, login_engine and user_engine
I am having a hard time gettign this to work.
Looking for advise and help.
Thanks
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Oct 23
0
route problem
.../users(.:format) users#index
POST
/users(.:format) users#create
new_user GET
/users/new(.:format) users#new
edit_user GET
/users/:id/edit(.:format) users#edit
user GET
/users/:id(.:format) users#show
PUT
/users/:id(.:format) users#update...
2010 Feb 16
0
Strange routing(?) Issue
...POST /
user_sessions(.:format)
{:action=>"create", :controller=>"user_sessions"}
new_user_session GET /user_sessions/
new(.:format)
{:action=>"new", :controller=>"user_sessions"}
edit_user_session GET /user_sessions/:id/
edit(.:format)
{:action=>"edit", :controller=>"user_sessions"}
user_session GET /
user_sessions/:id(.:format)
{:action=>"show", :controller=>"user_sessions"}...
2011 Jul 14
10
Devise confusing routes
...;'t fix the problem completely.
I think Devise is confusing the routes. If I do rake routes, I get
this...
new_user_session GET /users/sign_in(.:format)
user_session POST /users/sign_in(.:format)
destroy_user_session DELETE /users/sign_out(.:format)
new_user GET /users/new(.:format)
edit_user GET /users/:id/edit(.:format)
user GET /users/:id(.:format)
This is routes.rb
devise_for :users, :controllers => { :registrations =>
''users/registrations'' }
resources :companies
resources :users
resources :companies do
resources :users
end
I think the routes ar...
2010 Jul 27
13
3.0.0rc ActionController::RoutingError No route matches
...>"show"}
PUT /
users/:id(.:format)
{:controller=>"users", :action=>"update"}
user DELETE /
users/:id(.:format)
{:controller=>"users", :action=>"destroy"}
edit_user GET /users/:id/
edit(.:format)
{:controller=>"users", :action=>"edit"}
Whats odd is I''m not trying to link to :action => ''destroy'' at all...
just to ''show''.
Also when I generate a test scaffold application it complete...