search for: act_as_authenticated

Displaying 10 results from an estimated 10 matches for "act_as_authenticated".

Did you mean: acts_as_authenticated
2007 Jul 11
3
Problem with Acts as Authenticated not able to logout
Hi all, i installed Act_as_Authenticated plugin yesterday, everything seems fine: trying out the index, divert me to the login screen, i register and login. but when i try http://localhost:3000/account/logout, it didn''t work, after the action been executed, it takes me back to the index as i m logged in. i try to clean the loca...
2008 Jan 21
9
DRY act_as_authenticated functional testing
I''m using the acts_as_authenticated plug-in for my app. Now I need to get my functional tests to work properly. I have not written functional tests before so I''m unsure how to utilize setup so that all of my tests can use the login. My tests pass if I put login_as :user inside of each test, but that''s clearly not DRY. Can I add something to my test_helper.rb file or
2006 Mar 04
2
Declaring ActiveRecord observers
Hello I''m using the ''act_as_authenticated'' plugin to implement a small and simple authentication system in my app. Everything is working just fine and the world is a better place to live in. The plugin creates a ActiveRecord observer in order to send the newly registered user a confirmation e-mail. Per the API docs [1], one sho...
2006 Apr 15
8
I need to send an email when something happens in my model...
but the model isn''t the right place to send mail from. That just seems like pretty bad coupling, generating emails from within the model. Or is that not a problem? On top of that, these emails need to contain links back to my site...which is a bit of a pain in ActionMailer, but I found directions on http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer however I
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 the separate models? If that is not possible is...
2007 Jun 25
1
Functional tests and active scaffold: unexpected assertion failure.
Hello, I''m writing a functional test for a controller that uses active scaffold. def test_presence_of_field login_as(:peter) profile = Profile.find :first get :edit, {:id => profile.id} assert_response 200 assert_select "textarea#record_free_text_ec" end I was expecting the first ''assert 200'' to give me a green bar, but added it for
2006 May 25
13
.NET developer trying to understand some Rails basics
Hi All, I''ve been a ASP.NET developer for the last few years and consider it to be a pretty productive environment to work with. However, the object-relational mapping (ActiveRecord) and simplicity of the Rails framework and Ruby in general really appeals to me. .NET currently doesn''t have something like Rails'' ORM - atleast not out-of-the-box. Here''s my
2006 Feb 23
13
Check if a saved user''s name is admin
Hi all, I have a question about this method in my User model: # Returns true for the (saved) user called "admin" def is_the_administrator true if save and name == "admin" end The method returns true if the user''s name is admin. However, I only want to return true if the state of the object is "saved", so I call the save method first. I''m
2006 Mar 04
6
Can''t get Fast CGI working.
Well, after many hours of tinkering and internet browsing I just can''t get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI works fine, but as soon as I enable FastCGI in .htaccess I get the message: Application error Rails application failed to start properly Here''s what I''ve done so far: - I''ve installed all the necessary software for
2007 Jun 22
5
assert_select trying to verify the presence of a textarea
Hello, One of my functional tests looks like this: def test_presence_of_free_text profile = Profile.find :first post :edit, {:id => profile.id} assert_select "textarea", :name => "record[free_text_ec]" end The test results in a failure, because the element cannot be found. I''m pretty sure the element should be there, and I''ve tried