similar to: Access to session data

Displaying 20 results from an estimated 2000 matches similar to: "Access to session data"

2000 Apr 11
1
smbfs support under Solaris8?
The smbmount man page states that the kernel must support the smbfs file system for ambmount to function. I've been unable to determine whether Solaris8 supports smbfs. I'd appreciate hearing from anyone who has some experience here. Regards, Rick Wightman rwightman@agfor.nb.ca
2006 Jun 16
2
Problem with User Login from Agile Web Development
I am trying to use an expanded version of the User Login from the Agile Web Development with Rails book. It takes the user name and password but then says "Invalid user/password combination". Looking at the log everything seems to be fine until it sends the query to MySQL. The query shows that the name is '''' instead of the name that was passed to the self.login
2007 Sep 19
1
Fwd: win32-service of win32utils
Any ideas folks? Thanks, Dan ---------- Forwarded message ---------- From: Kay <serphakay at hotmail.com> Date: Sep 19, 2007 10:52 AM Subject: win32-service of win32utils To: djberg96 at gmail.com I''m writing some scripts to programmatically change the user account of running a windows service. So I downloaded one of the windows utilities, win32-service, and wrote my scripts.
2007 Dec 09
2
Questions about rails 2.0
Hi, i''ve found some questions on the rails blog which haven''t any answer. Because i''m interested too i paste them here: # gonzo on 07 Dec 22:10: Does CSRF protection work with forms that are fully cached? # rugal on 08 Dec 20:14: Great job guys! Just an information about migrations. will t.timestamps create both created_at and updated_at? And for _on ?
2006 Sep 30
2
Dovecot accepts squirrelmail, rejects fetchmail
Hello, this is a follow-up to the thread "Fetchmail can't talk to dovecot" http://www.dovecot.org/list/dovecot/2006-September/016477.html Increasing the log level I get this in the log filed: Sep 30 15:04:19 fm dovecot: Dovecot v1.0.rc7 starting up Sep 30 15:04:22 fm dovecot: auth(default): passwd-file /etc/dovecot_user_file: Read 1 users Sep 30 15:05:05 fm dovecot: auth(default):
2006 Sep 26
1
fetchmail can't talk to dovecot
Hello, I have dovecot q1.0-0_22.rc7 up and running on a server: I can read email from squirrelmail just fine. When I try to download email with fetchmail, however, I get the result below. Why is that happening? In dovecot.conf I have: protocols = imap imaps pop3, so why should pop3 or imap fail? Where should I look? (I'll fix the certificates problem after I've managed to get in
2006 Apr 11
4
find(params[:id]) question
Admin Controller - def show @wizard = Wizard.find(params[:id]) end View - <td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td> URL - http://localhost:3000/admin/show/1 I want user_name (one of the columns in the database) instead of the id to show For example:
2009 Jan 04
3
Table associated problem using belongs_to
I have two tables: Table [packages] id name user_name ------------------- 1 PK1 Ray ------------------- Table [users] id name full_name ------------------- 2 Ray Ray Sun ------------------- My purpose is to find the full name when I find packages. So I modify Model Package to: class Package < ActiveRecord::Base belongs_to :user, :class_name => "User",
2009 Feb 15
2
Execute cap deploy:migrations fails
Hi there, I am trying to deploy a rails app on dreamhost. Here is the error message that I get: fatal: ''home/USER_NAME/DOMAIN_NAME/git/APPLICATION_NAME.git'': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly /Users/USER/.gem/ruby/1.8/gems/capistrano-2.5.3/lib/capistrano/recipes/ deploy/scm/git.rb:224:in `query_revision'': Unable to resolve
2007 Jul 29
1
Curious why this doesn't work. (has_many, belongs_to)
Two Models. class Gm < ActiveRecord::Base belongs_to :pool # mode code here. end class Pool < ActiveRecord::Base has_many :gms # mode code here. end Testing code through the console. >> gm_list.each{ | gm | puts " GM name: #{ gm.user_name } belongs to Pool: #{ gm.pool.pool_name } " }; nil GM name: John belongs to Pool: RHP 07-08 Season - Career League GM name:
2006 Mar 01
1
Storing environment.rb settings in the database...
Has anyone accomplished storing settings that would normally go in environment.rb into the database? For instance, I''d like it if I could specify my ActionMailer properties from a web UI admin panel ActionMailer::Base.server_settings = { :address => "mail.server.here", :port => 25, :domain => "somewhere.com", :authentication => :login,
2006 Mar 13
2
Connectivity to Microsoft SQL Server using ADO
Based on this page: http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer using this specification development: adapter: sqlserver database: database_name host: server_name username: user_name password: your_pw_here in database.yml for your SQL Server connection doesn''t work. Some debugging code reveals that only the password comes through into
2005 Nov 18
2
help with User.find() and rendering text
Hi all, I''m trying to do something for a project. Herez what im trying to do. The user name gets passes from the view to the controller. On line2: The user name gets displayed. On line 3: (If this command works the way I think it works, the sad part is I always get it wrong) anyways, The entry in the data base with the given user name gets searched and the user info gets stored in
2009 Mar 03
1
PDC machine name appears as Domain Name on PC profiles
I have the distribution Samba package 3.2.3 running under Ubuntu 8.10 Workstation, downloaded using Synaptics Package Manager. It is running as a PDC. On some of my Windows XP workstations, the Windows profiles appearing under System Properties >> Advanced >> User Profiles appear correct, in the form DOMAIN_NAME\USER_NAME. On others, however, they appear in the form
2009 Apr 13
5
Ruby 1.8.7 + Rails 2.3.2 + TLS = Where's the documentation?
After spending a few hours reading dozens of blogs and tutorials I am still stumped. Numerous sites mention ruby 1.8.7 and rails 2.3 supporting TLS out of the box. However, I can not find any documentation on setting this up to send emails correctly. Furthermore, after attempting to send emails using Gmail and TLS i get the following error: 530 5.7.0 Must issue a STARTTLS command first.
2006 Mar 28
8
Problem connecting with an SQL Server 2000 database
Hi, I?m working on a rails application that uses data from an existing ms sqlserver 2000 database. Unfortunately I can?t get the connection to work properly. I used http://wiki.rubyonrails.com/rails/pages/HowtoConnectToMicrosoftSQLServer to make the connection. - Inserted the ado.rb - Changed my database.yml to development: adapter: sqlserver database: database_name host:
2008 May 20
5
How to write a test for validates_uniqueness_of
Hi, I have a spec it "should have a unique username " I have a code: validates_uniqueness_of :user_name Now, I don''t know how to test this code. In order to test this, do I need to run `save`? For example, @user = User.create(:username => "mike") @another = User.create(:username => "mike") @another.save.should be_false This messes up test
2006 May 08
2
session[:user_id] / name problem! Help!
Ok, I have a login on my site, and when I log in, I want to display "Welcome #{user}". In my session, if I do "Welcome <%= session[:user_id] %>" I''ll get "Welcome 1" which is right, but how can I access the name based on the session id? For instance, essentially I want to do this: "Welcome <%= session[:user_name] %>" or
2006 May 04
2
validates :on 2
Hello, I need to have this for :create and :login how do I do so validates_presence_of :login, :password, :password_confirmation, :user_name, :email, :on => :create I do need it to be off in a number of places though -- Posted via http://www.ruby-forum.com/.
2006 Apr 10
1
column.name question....
rHTML is <% for column in Wizard.content_columns %> <p> <%=h @wizard.send(column.name) %> </p> <% end %> It outputs: Robs Site Heading logo.jpeg London ------ Bascally 1 line for each column in the database. How do I edit the rhtml so I can break up the output? For instance JUST have ''Robs Site'' display nothing else. That mysql column is