search for: generate_blank

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

2006 Apr 20
5
Integrating with Legacy Databases
This seems like it must have been asked before - I really _did_ try to find it in the archives, so my apologies if it''s already out there. Utilizing ActiveRecord, I would like to specify a prefix for the column names in my table. For example, in ''Recipe 16 Integrating with Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal with integration with a
2005 Aug 26
2
Salted Login Hash Woes
...se that I changed in the project. Is there an easy way to see if ActionMailer is actually connecting to the mail server and logining in? The error that I get when I try to create a new account is: Error creating account: confirmation email not sent It comes from this function: def signup generate_blank case @request.method when :get @user = User.new(@params[''user'']) else @params[''user''].delete(''form'') @user = User.new(@params[''user'']) begin User.transacti...
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
...; /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1185:in `initialize_without_callbacks'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/callbacks.rb:236:in `initialize'' #{RAILS_ROOT}/app/controllers/user_controller.rb:67:in `generate_blank'' #{RAILS_ROOT}/app/controllers/user_controller.rb:3:in `login'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:853:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:33...
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action? Thanks Frank --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 29
10
A Good Tutorial on Params and Variables
I have found various posts about instance variables, session variables and parameters (each of which seems to use differnet syntax and have different view on the "best practice") I would like to find a single, reliable source that provides a good overview on all of it. Specifically, I would like to learn how to pass parameters between controllers and how to set session variables so
2006 Apr 25
0
completely stuck on Role-Based Authorization
Im completely stuck on Role-Based Authorization (I used the rails recipe method) (user_controller.rb) def login return if generate_blank @user = User.new(@params[''user'']) if @session[''user''] = User.authenticate(@params[''user''][''login''], @params[''user''][''password'']) flash[''notice''] = l(:user_log...
2005 Dec 31
0
Salted Login Generated code throwing lots of errors
...il.[]" Most seem to be down to evaluating a nested hash, where the first hash is a nil object. For example, @params[''user''][''login''] where @params[''user''] returns the nil object. This method in particular is annoying me: def login generate_blank @user = User.new(@params[''user'']) if @session[''user''] = User.authenticate(@params[''user''][''login''], @params[''user''][''password'']) flash[''notice''] = l(:user_l...
2006 Jun 15
6
Newbie''s problem with a nil object he didn''t expect!
Dear Rubyists/Rails gurus, Though I''ve successfully completed the various Rails tutorials online and the Depot application from the Agile Web Development with Rails book, I''m still pretty much a Ruby/Rails newbie. I''m trying to learn by writing my own simple blogging application, but I''ve run into a problem that has had me scratching my head for a few days now.
2007 Jan 05
8
Rails 1.2: Release Candidate 2
This is it. We''re a mere two shakes of a lamb''s tail from releasing the final version of Rails 1.2. But before we light the fireworks and pop the champaign, we''ll just do one itsy, bitsy, tiny test run. Like wearing protection glasses in downtown Copenhagen on New Year''s. You know, just for precautions. So please do give it a good run. We''re looking