search for: user_help

Displaying 9 results from an estimated 9 matches for "user_help".

Did you mean: userhelp
2005 Jun 08
0
warning: already initialized constant problem
Hi, I am getting the following error in WeBrick when using salted login generator: > ./script/../config/..//app/helpers/user_helper.rb:7: warning: already > initialized constant DEFAULT_HEAD_OPTIONS > 127.0.0.1 - - [31/May/2005:18:04:55 PDT] "HEAD /company.html HTTP/1.0" > 200 0 Now, I can easily get around this bug but i wondered how to prevent it from happening. Because user_helper is a module / mixin...
2006 Aug 04
1
Need a better undersanding of form helpers
...er controller has this one method: def register c = User.new(params[:user]) c.save redirect_to :controller => "main" end I think this is correct and the right controller for it to be in since it relates to the user model / object. Secondly do I use the form helpers in user_helper or main_helper. I have some attempt at a form helper in main_helper currently. In the user controller I have helper :main, but maybe I should just keep the form helpers in user_helper ? Lastly after I get whatever it is I need in the helper file, what is it that I put in the view to call it ?...
2006 Aug 25
0
Re: login sugar
...lic/../config/../app/controllers/user_controller.rb:12) > Rendering within layouts/scaffold > Rendering user/login > @flash is deprecated! Call flash.[] instead of @flash.[]. Args: ["notice"] > (head_helper at > > /pt/webprops/sysadmin/tst/public/../config/../app/helpers/user_helper.rb:72) > @flash is deprecated! Call flash.[] instead of @flash.[]. Args: > ["message"] (head_helper at > /pt/webprops/sysadmin/tst/public/../config/../app/helpers/user_helper.rb:76) > > @flash is deprecated! Call flash.[] instead of @flash.[]. Args: > ["message&qu...
2006 Apr 14
1
SaltedHashLoginGenerator Integration Woes
...y the SaltedHashLoginGenerator to where it separates the users table into two tables: a users table which contains login info: token, salt, etc) and userprofiles table (which contains firstname, lastname, authlevel, etc) I''m trying to use the existent helper for user under app/helpers/user_helper.rb and copied to app/helpers/userprofiles_helper.rb and prepended prof_ to the names of the functions to differentiate them. On the user_controller.rb I added helper :userprofiles and modified the app/views/_edit.rhtml to make use of the userprofile helpers... I also added: config/enviro...
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on string but how can I sort a date colum ( in my DB, ) user_helper.rb ---------------------- def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param options = { :url => {:action => ''list'', :params => @params.merge({:sort => key, :page => nil})}, :update => '&...
2006 Feb 16
1
file_column problem
...ver gets saved to the database or to the file system. 6. I get the following errors in the console: 127.0.0.1 - - [16/Feb/2006:12:35:46 Eastern Standard Time] "GET /user/yourpic HTTP/1.1" 200 1332 http://localhost:3000/user/account -> /user/yourpic ./script/../config/../app/helpers/user_helper.rb:7: warning: already initialized constant DEFAULT_HEAD_OPTIONS ./script/../config/../vendor/plugins/trunk/lib/file_column.rb:193: warning: already initialized constant EXT_REGEXPS ./script/../config/../vendor/plugins/trunk/lib/file_column.rb:587: warning: already initialized constant MIME_EX...
2006 Jan 10
5
Oracle 10g Express - generate scaffold gives error
...rojects\MPS>ruby script\generate controller users exists app/controllers/ exists app/helpers/ create app/views/user create test/functional/ create app/controllers/user_controller.rb create test/functional/user_controller_test.rb create app/helpers/user_helper.rb and I modified user_controller.rb like this: class UserController < ApplicationController scaffold :user end I booted WebRick E:\radrails\projects\MPS>ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server;...
2005 Jul 05
2
Salted hash login generator (verification problem?)
...; 3: 4: <div class="form-padding"> 5: <%= message_helper ''change'' %> /gems/actionpack-1.8.1/lib/action_view/helpers/active_record_helper.rb: 100:in `error_messages_for'' ./test/functional/../../config/..//app/helpers/user_helper.rb:81:in `head_helper'' (erb):2:in `evaluate_locals'' /gems/actionpack-1.8.1/lib/action_view/base.rb:265:in `evaluate_locals'' /gems/actionpack-1.8.1/lib/action_view/base.rb:276:in `rhtml_render'' /gems/actionpack-1.8.1/lib/action_view/base....
2005 May 18
10
Salted Login Generator issues
...#39;'m not sure if this is related or not, is that every page load drops the following in my apache error log: [Tue May 17 17:14:52 2005] [error] [client xxx.xxx.xxx.xxx] FastCGI: server "/opt/www/toolbox/public/dispatch.fcgi" stderr: /opt/www/toolbox/public/../config/..//app/helpers/user_helper.rb:8: warning: already initialized constant DEFAULT_HEAD_OPTIONS I''ve grepped the entire tree and the only mentions of DEFAULT_HEAD_OPTIONS exist in that file. It''s set at the beginning of the file: DEFAULT_HEAD_OPTIONS = { :notice => true, :message => true, :erro...