Displaying 20 results from an estimated 30000 matches similar to: "Form Change Old Password"
2008 Jan 17
2
Forms, database, and yes I'm new
I have a quick question on a problem of mine.
I''ve done the ONLamp tutorial with scaffolding a recipe etc, and honesly
I didn''t get really any wiser. So I decided to try it out on my own
without scaffolding.
However. Now I''m stuck with my edit-form. I need to update a row with
old text in the ''pres'' column in the table called
2006 Feb 06
0
dovecot-cvs/mysql-5.0.18 OLD/PASSWORD problem
i use openbsd/i386, dovecot-cvs(today), mysql-5.0.18
today, i change the mysql_dbuser_password form OLD_PASSWORD to PASSWORD
then dovecot can't connect to mysql-server
shell$> mysql -u root -p
mysql$> SET PASSWORD FOR 'db_user'@'localhost' = PASSWORD('db_pw');
now, dovecot CAN NOT connect to mysql-server
shell$> mysql -u root -p
mysql$> SET PASSWORD FOR
2009 Oct 06
1
Problems Processing multiple form elements generated by javascript actions
Hi all,
After many days of struggling, I have a multi-model form with ajax
elements more or less working, but I''m hitting a wall with a few bugs
that I can''t figure out. Guidance would be very much appreciated.
I''m using the Ryan Bates technique from Advanced Rails recipes to
dynamically add and remove elements on a multi-model form.
2008 Jan 02
0
why does rails keep prompting me for post?
Hi, was tryin to do a restful method to allow users to change
password.
This is what i did:
1) use restful authentication plugin.
2) use the code here http://www.railslodge.com/plugins/75-restful-authentication/documentations/1-change-password
3) realise that
no1. i am using something funny like /v1/users/:permalink/
change_password and not just /change_password
no2. i cant use html.erb for
2010 Aug 09
0
Devise :current_password validations and checking (how???)
Hi Guys,
In my devise applications in Rails 3, I created a separate form under my
SettingsController class of which it handles the ''Change Password'' of
the User Model, so i can manipulate the current_user in the
SettingsController.
Now, I followed the set-up in the Devise/Views on how to update the form
using ''Change password'' and either way update User for
2006 Feb 10
0
Update two models that have belongs_to relationship
I have model Program and model PointOfContact. Program belongs to
PointOfContact. There is a form to update values, which shows attributes
from both models on one form. What is the best way to update the models
with one call. I tried this and it did not work
Controller code:
@program_old = Program.find(params[:id])
@program = Program.new(params[:program])
@program.id =
2008 Feb 04
2
attachment_fu and form_tag for multiple models?
hi, i''ve got a page where i''m trying to save the user''s profile
information and an image of the user, but i''m having trouble with using
attachment_fu and the form_tag method.
now i know attachment_fu isn''t designed for form_tag but am really
hoping someone has a solution for this as frankly i''m stumped.
here''s the form_tag part in
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out
what the method in the controller should look like. I tried @user.save
and @user.update_attributes, but can''t get it to work.
My Form:
##############################
<%= start_form_tag :action => "update_password", :id => @user.id %>
<%= password_field ("user",
2006 Mar 27
0
update subset of my data
Please can someone put me out of my misery...
I am missing the point here:
I have a table of albums called: dealers
I have a table of images: popp_images
each dealer has 6 popp_images linked by foriegn key: albumid
Each dealer can login using user_engine engine
I restrict viewing for each dealer to their own images by assigning each
dealer their own albumid.
I list their images with:
in my
2006 Nov 04
0
Functional test issue for testing newbie
Hi there
I''m having difficulty succesfully updating attributes via a post
request in a functional test.
Here''s some pastes:
######################################
# account_controller.rb
def edit_details
@user = User.find(self.current_user.id)
return unless request.post?
if @user.update_attributes(params[:user])
flash[:notice_good] = ''Your account details
2008 Mar 07
0
ActiveRecordStore: cleanup & avoiding duplication
Hi,
I''m using ActiveRecordStore to track user sessions.
I''ve used as a base the next sources:
- http://blog.levicole.com/articles/category/ror
- http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/
- http://www.williambharding.com/blog/?p=99
This is what I currently do:
IN SESSION CONTROLLER
def create
self.current_user = User.authenticate(params[:login],
2007 Jan 29
0
mock.with(Hash) expects an Array ?
Hi all,
I looked at the open issues on the bug tracker, but couldn''t find
anything related to this. I also searched the archives. And I can''t
believe someone didn''t hit on this before.
Here''s my spec:
context "A project owner" do
controller_name :roles
setup do
controller.stub!(:current_user).and_return(@user = mock("user"))
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2012 Apr 06
3
I can't update data in table
In my edit page: url = profile/:id/edit
the content is !
<%= form_for(@user, :as => :user, :url => profile_path(current_user),
:html=>{:method => :put}) do |form| %>
<%= form.text_field :email, :class=>"input"%>
<%= form.submit ''Update Profile''%>
<% end %>
............................
In controller section !
class
2006 Jun 26
0
How to limit access to model objects based on role?
Hi all,
I want to limit access to model objects based on the role of the logged in
user. It seemed the most blunt way of doing this would be make copies of
each controller which accessed the models and use one of the access control
systems out there to limit access to the controllers. However, with 9
different controllers this seems like a terrible choice.
Here''s what I''ve
2012 Aug 17
3
Rails doesn't validate create_model or build_model (has_one association)
I''ve got User has_one Shop. Rails is not validating when I tried
create_shop or build_shop, neither in the browser nor the rails console.
My code:
class Shop < ActiveRecord::Base
attr_protected :user_id
belongs_to :user
validates_presence_of :name, :primary_address, :city, :country_code,
:currency
end
class ShopsController < ApplicationController
before_filter
2008 Jul 01
2
"select NULL as password..." failing after upgrade to dovecot-1.1
Hi,
I've upgraded mail server to dovecot-1.1, on solaris-10 with mysql user
database.
I used sql query
"SELECT NULL as password, login as user,
concat('/mail/var/dovecot/',login) AS userdb_home, 501 AS userdb_uid,
501 AS userdb_gid FROM users WHERE login='%n' AND
password=old_password('%w')" with dovecot-1.0.15 and it worked perfectly.
But since upgrade
2006 Aug 09
0
Multi-Model Forms
I want to update a form that contains logically grouped fields that
are contained across multiple models.
My models are:
user [act_as_authenticated]
profile [belongs to user]
newsletter [belongs to user]
Is there a way that I can setup my view so that in the controller I can write
self.current_user = params[:user]
self.current_user.save
instead of having to specify each value individually for
2006 Dec 08
9
How to update partial attributes of a object from a form?
I have a user table, and it has forty columns, including name, gender,
address, email, phone...
So my @user object will have forty attributes.
I divide these attributes into 4 groups... namely ''general info'',
''personal info'', ''contact info''... and I make separate forms to edit
these 4 different group attributes.
The problem is when I update
2010 May 16
0
update_attributes for nested form
I have two models.
model A
has_many :b
def before_validation_on_create
.........
end
model B
belongs_to :a
In b''s controller and ''update'' action, I have
a.update_attributes(params[ :a ])
So when I was trying to create a new ''b'', before_validation_on_create is
being called twice.
Pleas let me know if you guys have any suggestions.
Thanks in