search for: activate_user

Displaying 4 results from an estimated 4 matches for "activate_user".

2006 Mar 14
2
rjs woes
...is there, it''s just not being evaluated. checkbox: <div id="cb_div"> <input type="checkbox" name="active_flag_<%= user.id -%>" value="<%= user.id-%>" <%= user.active? ? "checked" : "" -%> onclick="activate_user(this)"/> </div> javascript: function activate_user(cb) { var status = (cb.checked) ? "1" : "0" var data = "id" + cb.value + "&af=" + status var myReq = new Ajax.Request( ''/admin/users/activate'', { :method: ''...
2006 Mar 16
9
Baffling AJAX issue
Ok, I''ve got some link_to_remote stuff working elsewhere just fine, but this time it''s doing something very screwy. Here''s the view code to create a link to remotely toggle a boolean value on a record: <td class="contact_active"> <%= link_to_remote "<div id=''contact_active_#{cm.id}''><span
2011 Aug 01
6
Query controller using two resources
I have an activation link. I want the user to click on the link, kinda like this... domain.com/users/45/activate/1jf872 The number after "users" would be the user id, and the string after "activate" would be the activation code. In the link above it would be user id 45 and activation code 1jf872. I have no problem sending the email. My problem is getting the route (the url)
2010 Feb 16
0
Strange routing(?) Issue
...t;users"} new_user GET /users/ new(.:format) {:action=>"new", :controller=>"users"} edit_user GET /users/:id/ edit(.:format) {:action=>"edit", :controller=>"users"} deactivate_user PUT /users/:id/ deactivate(.:format) {:action=>"deactivate", :controller=>"users"} activate_user PUT /users/:id/ activate(.:format) {:action=>"activate", :controller=>"users"} user GET /...