Displaying 20 results from an estimated 3000 matches similar to: "I feel stupid - help with Element.show"
2008 Mar 16
1
form_for error
Hi all,
I have the following code in my application layout:
<div id="utility">
<% if logged_in? %>
<%= link_to "Sign Out", logout_path %>
<% else %>
<%= link_to_function "Sign in",
"$(''signin'').toggle();$(''signin_link'').toggle()",
:id => "signin_link" %>
2006 Jul 07
13
Rails Recipes Book: Authentication
Hi,
The user/login management system in Chapter 31: Authenticating Your
Users and Chapter 32: Authorizing Users with Roles of Chad Fowler''s
Rails Recipes looks reasonable and adequate. However, when I ran the
Chapter 31 code, I get the following error:
Username or password invalid
And I am not even given the chance to sign in; that is, the signin form
does not appear at all.
Has
2006 Aug 07
8
Login form question
I''m using Rails Recipes to create a login form but instead of username
and password, my setup is firstname, lastname, password.
I seemed to be gramatically challenged and not sure how to set up the
parameter list. Can anyone offer up a suggestion.
The book shows the method starting like:
if request.post?
user = User.find(:first, :conditions => [''username = ?'' ,
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
any ideas ?
Application works fine with rails 2.1.0
Sandip
--
Ruby on Rails Developer
http://funonrails.wordpress.com
www.joshsoftware.com
http://brandpotion.com (Latest project released)
--~--~---------~--~----~------------~-------~--~----~
2007 Jul 22
2
undefined method `stringify_keys'
Hello
I have a view for user registration but when i try to view this page i
get this error:
undefined method `stringify_keys'' for "username":String
Here''s my registration.rhtml:
<% form_tag :controller => :user, :action => :register do %>
<fieldset>
<label for="username">Username>/label><br/><%= text_field_tag
2006 Apr 21
1
Catch authentication result from a model in a controller
Im still following the authorization recipe from the book, now all works
fine but im getting trouble in how handle the model authorization
result, if the user and pass are correct, it goes to a welcome
screen(admin.rhtml) but if wrong the model prints a message in an ugly
exception like page "usr and pass not correct", i want to redirect the
user to the login
2007 May 25
1
form_remote_tag :condition
I am using the following validation prototype-based js library:
http://tetlaw.id.au/view/javascript/really-easy-field-validation
What I am trying to do is upon submitting a form via AJAX, I want it
to meet the conditions of the validation of the function validateMe()
If it passes, go ahead and continue and push the form information via
an AJAX call. This is what I have:
<% form_remote_tag
2007 Oct 05
2
Stories VS Scenarios
Hi all,
I have read Dan North''s post ''Whats in a Story?''
(http://dannorth.net/whats-in-a-story) but I am still having a hard time
knowing when I should break requirements up into separate stories or
keep them as scenarios. I am currently trying to write a story
(stories) for the registration process of a site. The registration
process is a multistep process that
2006 May 18
2
attempt to override the ''tag'' method
I want to override the ''tag'' method in
ActionView::Helpers::TagHelper to do some generalized
error handling similar to the way scaffolding puts a
red border around fields that fail validation.
I''ve created a file lib/rails_patches/tag_helper.rb
which contains the following.
module ActionView
module Helpers
module TagHelper
alias_method :orig_tag, :tag
2006 Jun 30
8
before_filter: nil vs. true vs. false
Folks,
My understanding of how filters work is that I should return true if
everything is ok and false if not. How does the filter below work
then (from the Rails Recipies book)?
It would return nil if there''s a user in the session. Does nil count
as true?
before_filter :check_authentication
def check_authentication
unless session[:user]
session[:intended_action] =
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page:
login.rhtml
1 <fieldset>
2 <% form_tag do %>
3 <label for="name">Name:</label>
4 <%= text_field_tag :name, params[:name] %>
5 <label for="password">Password:</label>
6 <%= password_field_tag :password, params[:password] %>
7 <%= submit_tag
2013 Jul 09
3
routes for devise in rails4
hi all,
i am using 3 devises for 3 models in rails4.
i need routes to my devise models.the devises are client,admin,employee.
when i login into client then it will go to clients dashboard, when i
login into admin then it will go to admins dashboard, the employee also
has the employee dashboard.
if i do not enter any login then the common dashboard body message is
please signin.
please let me
2007 Aug 21
7
Signin to LinkedIn
Hi,
Does anyone have the formula for getting logged into LinkedIn?
Here''s my current attempt:
require ''rubygems''
require ''mechanize''
agent = WWW::Mechanize.new
home_page = agent.get(''http://www.linkedin.com'')
signin_page = agent.click home_page.links.text(''Sign in'')
puts "\nSIGNIN PAGE"
2013 Jan 09
2
Rails 3.2.10 and Rspec Tests that Fail?
The following tests used to reside in requests directory and used to
work ... since I have upgraded to rails 3.2.9 and now 3.2.10 they
fail.
I have the following tests in(I am only showing the first two tests):
spec/features/authentication_pages_spec.rb
require ''spec_helper''
describe "Authentication" do
subject { page }
2005 Apr 20
1
MySQL and dovecot
Hi,
I have some problems with my connection from outside to POP3/IMAP... As far
as I can see every should be set corret. Currently I use version
0.99.11-1.FC3.4 installed from an RPM-file.
I tried to debug the signin process. It's always saying bad password... What
encryption can DoveCot read? Currently my password is encrypted with
md5crypt...
Regards
Anders
2007 Dec 12
1
Tearing my hair out:
I have a samba 2.2.8a PDC, no windows servers at all.
The local network works. Conan, the PDC also acts as a WINS
server. Postie, the DHCP server sets:
option netbios-name-servers 192.168.1.241 ;
option netbios-node-type 2 ;
All clients have lmhosts file with:
192.168.1.241 conan #pre #dom:sjsa
192.168.1.242 postie #pre
Last week I needed to reinstall a computer, named pixel
On server
2013 Jan 10
1
SSH from within OpenSSH
This is a request for a How-To
I need to SSH from my Windows 7 laptop to several Linux machines that are
inside a secondary VPN.
To explain: I have a network (Call it LAN A), containing a few Windows 2K
servers, that is protected by a VPN. That network connects to another one
(call it LAN B), that has a few Linux server, over a separate site-to-site
VPN.
>From outside (here) I have no access
2013 May 01
2
Samba4 does't run netlogon scripts and batch files
I've tried to move from Samba 3.6.14 to Samba 4.0.5. Process went smooth, Win8Pro clients joined domain successfully.
But now netlogon startup scripts does not run on clients at signin. Also .bat batch files from network shares does not executes (Win8 says do not have permissions) without execute bit set.
This is the right behavior? How to get back previous?
If I return 3.6.14 version
2006 Jul 05
1
RuntimeError with Rails Recipe "Authenticating Your Users"
HI,
I''ve gotten this Rails Recipe running fine (a bit before I completely
understand it) except when the signin is incorrect I return an
error(below). All I want is to either have the incorrect signin
redirected to "store" rhtml
or to a refreshed and empty signin. Any clues???
TIA
Chas
######From Browser ##### http://localhost:3000/admin/signin
RuntimeError in
2006 Jul 13
8
Acts As Authenticated - smarter login box
Hi,
I''ve got AAA loaded and working. I now want to put a smarter login form
on the sidebar of my site.
If the user is not logged in, I''d like to display a typical form in the
sidebar that collects the user ID/password and allows the user to login.
If the user is logged in, the box should display something like ''Logged
in user: FirstName Lastname'' and a