Displaying 20 results from an estimated 400 matches similar to: "help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base"
2008 Sep 30
0
undefined method `authenticate_with_http_basic' for #<SessionsController:0xb6c47c44>
I am developing the rails with the flex.. I am following the tutorial
FLEXIBLE RAILS - PETER ARMSTRONG .
I followed the commands as specified in the tutorial.. my rails version is
1.2.3
and the ruby 1.8.6
I created the restful authentication and i specified the authentication..
ruby script\generate authenticated user sessions
...output omitted...
I specified everything.. It worked fine upto 500
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ...
Why doesn''t rescue_from ActionController::RoutingError work witht he
code from
http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
2010 Apr 02
6
App_Controller and partial issues with has_many through
I have a User model, a Post model, and an Interest model:
User has_many posts through interests
User has_many interests, dependent destroy
Post has_many users through interests
has_many interests, dependent destroy
Post has_many interests
Interest belongs to Post
Interest belongs to User
Application_Controller is as follows:
class ApplicationController < ActionController::Base
before_filter
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi,
I just installed Rails 2.0.2
[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#
But I''m getting this error in my restful_authentication
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated
current_user in a model?
Is there some sort of include or require I can do some where that would
allow this?
**********************************************************
Here is what I am trying to do:
**********************************************************
class Setting < ActiveRecord::Base
before_create :created_by_user #
2008 Jun 16
2
simple rails login system
Hey All,
Just started to play around with rails a bit today by creating a
login system, but I''ve run into a glitch.
###user_controller.rb###
class UserController < ApplicationController
def login
@title = "Log In"
if request.post? and params[:user]
@user = User.new(params[:user])
@userfind =
2006 Aug 07
1
''Remember me'' in acts_as_authenticated troubles
Hi there
I''m having trouble getting the ''remember me'' functionality going in
acts_as_authenticated.
The issue seems to be that the login_from_cookie method is using only
the first 60 characters of the remember_token string in the database,
whereas the string in the db is 75 characters long.
I can see in my dev log that login_from_cookie is trying to find the
user but
2009 Mar 18
0
uninitialized constant AuthenticatedSystem
I''ve just had a little snafu installing restful_authentication in a
new app, and thought I would list it here for archival purposes.
Firstly, there are messages about files not existing. My fix was to
manually create lib and test/fixtures directories. (Remember, this is
a brand new application.)
Secondly, There were "uninitialized constant" messages re.
AuthenticatedSystem.
2008 Jul 16
0
A copy of AuthenticatedSystem has been removed from the module tree but is still active!
Hmm, this is a weird one. I just started up script/server today to get
this error when browsing around.
"A copy of AuthenticatedSystem has been removed from the module tree
but is still active!"
Any ideas? I''ve googled, but the results that show all seem to refer
to Rails 1.*
I don''t think I''ve changed anything that would affect this.
I''m using
2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi
I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just
like the example in the post
http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released
However, trying it in irb gets me the following error:
>> require ''mocha''
=> true
>> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007''))
NoMethodError:
2007 Oct 04
5
Specs and Libs
How would I go about writing specs for a lib, particularly one with
all protected and private methods. I''m trying to spec the
AuthenticatedSystem library from the rails restful_authentication
plugin:
http://pastie.caboo.se/103625
Also, when you''re mocking objects, a side-effect is helping you
define the api of the object. Is there a way to get all the
behaviors that
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
I am using restful_Authentication plugin combined with the built-in
http_basic authentication Rails 2.0.2
The following code in my controller seemed to work fine,
1. before_filter :authenticate
2.
3. def authenticate
4. case request.format
5. when Mime::XML, Mime::ATOM
6. if user = authenticate_with_http_basic { |name,
pass| User.authenticate(name,
2006 Apr 03
1
bristuff for * 1.2.6/zaptel 1.2.5
has anyone seen a bristuff version compatible to the actual *1.2.6/zaptel
1.2.5 ?
the actual bristuff-patches version 0.3.0 PRE 1l doesn't apply correctly
anymore...
2009 Aug 28
4
InvalidAuthenticityToken
Hi guys
What does the below line says
ActionController::InvalidAuthenticityToken
(ActionController::InvalidAuthenticityToken):
-e:2:in `load''
-e:2
Please guide me
--
Karthik.k
Mobile - +91-9894991640
2007 Jun 16
2
Specs don''t find modules when using the secure_actions or ssl_requirement plugin
Hello,
I''m trying the secure_actions plugin (or ssl_requirements)
I''m installed the plugin, and added the include in application controller:
class ApplicationController < ActionController::Base
include ExceptionNotifiable
include AuthenticatedSystem
include SecureActions
...
but when I try to run the specs I got this error:
2007 Oct 16
1
Stub ActionController::Base#params
Has anyone had any success stubbing ActionController::Base#params? The
following is not intercepting calls to params[:foo] in my controllers:
ActionController::Base.stub!(:params).and_return(:foo => ''bar'')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/282a76ba/attachment.html
2006 Aug 06
1
Where is ActionController::InPlaceEditing?
I can''t find this doc anywhere, but the JavaScriptMacrosHelper doc
mentions it.
Jose
--
Posted via http://www.ruby-forum.com/.
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external
asset host. I''ve got the lines below in my environments/development.rb
file.
# Enable serving of images, stylesheets, and javascripts from an asset server
config.action_controller.asset_host = "http://assets.example.com"
#make rails think it lives in /app
2006 Jul 03
0
ActionController parameters and conditional select
Hello everyone,
I''m pretty new to Rails and have been working on my own test app to
check things out.
I''ve run into a couple of Nuby snags. I''ve looked for the answers but
have not found a concise answer to my problem.
What I would like to do is to have a table of ''people'' and be able to
display a list of ''people'' based on
2006 Jul 04
0
ActionController::UnknownAction hangs application
I''m trying to override rescue_action_in_public() using the PP example,
but my application hangs every time I generate an error.
def rescue_action_in_public(exception)
case exception.class
when ActiveRecord::RecordNotFound,
ActionController::UnknownAction
render( :file => "#{RAILS_ROOT}/public/404.html",
:status => "404 Not