Displaying 7 results from an estimated 7 matches for "login_pag".
Did you mean:
login_page
2006 Apr 18
4
Mixin variables
I''ve created an access control module that I''m including in several
different controllers. Everything works fine, but I want to allow each
controller to override the default login page with something like this:
set_login_pages :secure => ''my_login''
In my module, I''ve set up the set_login_pages method like this:
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def set_login_pages(*login_page_list)
@login_pages = login_page_list
end
end...
2010 Apr 26
2
woriking under webrick but not under passenger
...=0 [0m
Processing ****Controller#index (for 192.168.1.101 at 2010-04-26
18:56:24) [GET]
[4;35;1mUser Columns (1.7ms) [0m [0mSHOW FIELDS FROM `users` [0m
[4;36;1mUser Load (0.7ms) [0m [0;1mSELECT * FROM `users` WHERE
(`users`.`id` IS NULL) LIMIT 1 [0m
Redirected to https://******/login/login_page
Filter chain halted as [:authorize] rendered_or_redirected.
Completed in 31ms (DB: 3) | 302 Found [https://******/]
Does anybody has any suggestion what I could do?
--------------------------------------------
class LoginController < ApplicationController
def add_user
@user = User.new(...
2009 Apr 09
1
undefined method ''text'' ...
Just trying to run the example
*****
require ''rubygems''
require ''mechanize''
a = WWW::Mechanize.new
a.get(''http://rubyforge.org/'') do |page|
# Click the login link
login_page = a.click(page.links.text(/Log In/))
# Submit the login form
my_page = login_page.form_with(:action => ''/account/login.php'') do |f|
f.form_loginname = ARGV[0]
f.form_pw = ARGV[1]
end.click_button
my_page.links.each do |link|
text =...
2007 Dec 06
0
Too many open files leads to timeout exceptions in Mechanize/Net::HTTP?
...e ''get'' or the ''submit'' method calls.
> class AuthedAgent < WWW::Mechanize
> include Singleton
>
> def initialize
> super
>
> $import.status = ''connecting'';
> $import.save!
> login_page = get($config[:urls][:login])
> raise SiteChangedException, "Login page is 404" if (!
> login_page.title.nil? && login_page.title.include?("The page cannot
> be found"))
>
> $import.status = ''authenticating'';
>...
2003 Aug 04
6
bugs.digium.com
Is anyone else having trouble accessing it with something besides IE on a
Windows box? Opera on Mac/FreeBSD/Linux just hangs at the login page, IE
on Mac and Netscape on Solaris & Linux explode when loading
login_page.php.
2006 Mar 18
1
user engine redirect configuration help
...nless the the controller has been defined in a module. i.e. When I
try and access localhost/admin/roles/list as an unathenticated user I
get redirected to localhost/admin/user/login insted of the correct
location: localhost/user/login.
I''ve changed the settings in the environment.rb to
login_page: :controller => ''user'', :action => ''login
but I don''t know how to force the user controller to always be
unqualified. Any help would be greatly appreciated.
Thanks,
Dan
2006 Mar 29
1
Problems with lighty
...I have
tried several others with the same end result) in lighty, I always get
404 errors.
The only time I don''t get a 404 error is if I include this line in
routes.rb:
map.connect ''/dispatch.fcgi'', :controller => ''users'', :action =>
''login_page''
Then it will properly display the page. It will also properly display
any file I have in the public directory. But any time I try the
controller/action URLs, I get a 404. It''s not the 404.html file in
public either, it''s actually a 404 from dispatch.fcgi, or at l...