similar to: Where did this value in a form come from?

Displaying 20 results from an estimated 4000 matches similar to: "Where did this value in a form come from?"

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
2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi: I am using authlogic, and following railscast tutorial. I am running into this error code with the password confirmation. authlogic password confirmation is too short Has anyone experienced this error? I need your help. Thanks in advance for your help.
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following: -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2009 Oct 18
4
NoMethodError in User sessionsController#new
I''m setting up authentication with Authlogic and I get this error. I''ve done some searching but with no success. I tried setting the current_user method in Application_controller to protected and not private, on the recommendation in Stack Overflow. Error in browser----------------- NoMethodError in User sessionsController#new undefined method `require_no_user'' for
2010 Jan 12
8
tips on how to write a controller test for models associated with currently logged in user
I have a controller test here: http://gist.github.com/275616, which works fine when account is an independent model, however I want: an account to be a property of user, ( and created and associated when a user is) when the user goes to /account/edit it should on edit the account of the logged in user - I can make rails do this, but I''m utterly baffled how I should alter this test to
2010 Dec 27
4
Crazy routes
Hello! I''m using restful_authentication and I would like to have diferent views for logged users and not logged users. Logged users can edit and create items, and not logged user could only list items and show its features. In my routes file I have: map.namespace :admin do |admin| map.resources :items, :controller => "admin/items", :path_prefix =>
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following: - xyz = someFuncThatReturnsString(''xyz'') and elsewhere %div{''id'' => xyz} The above lines work fine. - - - Attempting to keep things DRY (Don''t repeat yourself) I want to do something like - eval(otherFuncThatReturnsString(''xyz'')) where
2010 Feb 05
7
I'm having trouble with Routes II
I have narrowed my problem in a prior topic (I''m having trouble with Routes) to the fact that I get the problem, below only when I reload my page. Clicking on links to go to the pages I want ... I seem not to have problems. Given that it seems to be a reload that is generating an "/undefined" path somewhere ... can anyone suggest what I should be looking for to fix the
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user model: t.string "crypted_password" t.string "password_salt" t.string "persistence_token" There is an existing (cleartext) password field, but authlogic doesn''t seem to be reading that on existing accounts. As a result, all logins for existing accounts fail. How can I get
2010 Feb 11
4
recursive expansition of <% ... %>
In a controller I have @message = "The size is <% @a.size %>." In the view I have <%= @message %> which, sadly, produces The size is <% @a.size %>. rather than, say, The size is 4. If I try <%= <%= @ message %> %> I get a syntax error. Is there a solution? -- Posted via http://www.ruby-forum.com/. -- You received this message because you
2011 Jun 16
2
Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
In a Cucumber step definition, I''m trying to login, but I keep getting this error: You must activate the Authlogic::Session::Base.controller with a controller object before creating objects (Authlogic::Session::Activation::NotActivatedError) My code: Given /^I am the logged in (.+) "(.+)"$/ do |role, login| user = User.create!( :login => login, :password =>
2010 Sep 16
3
Resyful authenticatio current_user in model
Hi, I am using Restful authentication for user authentication. I want the current logged in user object in my model property.rb Problem is current_user is not working on model. How can I fix this I need that? Please help me out. Thanks, Mike -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2010 Jan 18
5
Re: puts & logger ... flush immediately
Marnen Laibow-Koser wrote: > Ralph Shnelvar wrote: >> newbie here ... >> >> I am tracing logic putting puts and logger.info calls in my code. >> >> I _think_ Rails is buffering output so that I can''t see what happens >> until I close out webrick. > > But you are probably wrong. If you watch the log scroll by, you will > generally see
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the solution I found with respect to UTF-8, YAML::load, and Ruby/Rails. Comments are appreciated. - - - I had been struggling for two days to get UTF-8 working in my Rails app. I had/have a localization file, lib\locale\de.yml, that had iso-8859-1 encoding. I could not get that to display properly. Marnen, quite correctly,
2009 Sep 24
13
Rails Authentication Tutorial
Does anyone know a good authentication tutorial they can suggest? I''ve tried several restful authentication ones and an authlogic one on RailsCast. But with each one I try, something seems to be missing in the tutorial and I can''t get it to work. I''m new to Rails so it''s possible user error on my part. I''m on Mac OS X 10.5 and I generate all my apps in
2010 Sep 27
5
RoR Tutorial : clear password field
Learning Rails following the Rails Tutorial book I have the following question. In chapter 8 at the Exercises part they talk about clearing the password field. I tried several things to do this, but till now didn''t find the solution. Anyone has a tip how to do this? Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Oct 14
6
Combining rails intrAnet and public site.
Hello, everyone! I was wondering if somebody has some insight on this issue. [h]A little background:[/h] I work for a midsize electronic manufacturing company with 2 people in IT dept - a network admin and a developer (me). We''ve been using rails to migrate from an old dBase and VB based system to build internal company IntrAnet that does things like label printing, invetory control,
2009 Sep 15
6
User login and authentication
Being a rails newbie, I started to design our first rails-based webapp. This app should not only be used via browsers, but we also want to provide a (RESTful) api. I love the ''convention over configuration'' paradigm, but am totally clueless on what to do when it comes to user authentication. Is there a THE rails-way of doing this? I found many excellent gems and plugins, such as
2010 Jan 30
1
RoR & YML
In ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\locale\en.yml I see activerecord: errors: template: header: one: "1 error prohibited this {{model}} from being saved" other: "{{count}} errors prohibited this {{model}} from being saved" # The variable :count is also available Where does "model" come
2009 Dec 23
1
variable f rather than frame f in debugger
Newb here. I have a parameter (i.e. do |f|) f in new.html.erb I am inside the debugger and I issue an f and the debugger comes back with Missing a frame number argument. How do I get access to the variable f instead of issuing a "frame" command? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby