Displaying 20 results from an estimated 1000 matches similar to: "form_for error"
2006 Mar 31
4
I feel stupid - help with Element.show
This isn''t Rails-specific, and I''m sorry for that, but I haven''t been
able to get a response in the #prototype/#javascript/#ror channels,
nor find anything via Google.
I have a form element that I want to be hidden when the page first
loads, and appear when a user clicks the link. Here''s the code:
<div id=''signin-link''><%= link_to
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 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
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this:
http://myapp.mydomain.com/myapp and
and
https://myapp.mydomain.com/myapp
are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster
on the same machine.
But I need to make these available here:
https://www.mydomain.com/myapp
and
https://myapp.mydomain.com/myapp
are on a second server using ProxyPass and ProxyPassReverse to
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] =
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"
2007 Dec 16
3
how do I spec my Rails routes?
Once again, here''s something I haven''t figured out. Apologies if this
is too newb-ish, but, how do I spec my routes using RSpec-Rails?
In particular, I''ve got a catch-all route that needs to catch a wide
variety of URLs:
map.document ''*url'', :controller => ''documents'', :action => ''show''
Is there a way to
2010 Dec 21
5
Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
Hey all,
I know that this:
Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id
means that I have an instance variable that has not been initialized.
However, I''m a little confused as to what to do in a signup form for
form_for:
<% content_for :login do %>
<% form_for @user, :url => { :action => "login" } do
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
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 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
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
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 Aug 01
0
How to retrieve :web when redirecting to an Instiki page?
Hello, I am currently working on implementing some authentification code
onto Instiki (0.11.0). I am encountering a problem in this situation :
When I try to access say http:/localhost:2500/orz/show/Test , where orz
is an instiki web name, I am redirected to my signin form screen (which
is what I want) but then upon signing in I get the following message:
No url can be generated for the hash