Displaying 20 results from an estimated 4000 matches similar to: "Remember me not working across the browser"
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
This happens before each login attempt.
Please note that if I click on the refresh button of my browser I then
login succesfully.
Any hint?
--
fabio vitale
NoMethodError in AccountController#login
undefined method `remembrall_expires'' for #<User:0x351f238>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is
nullable. If the user enters say blank or empty space then in the database
it is recorded as empty space. I would like in all my models all empty
spaces to be recorded as null.
I guess I can write a plugin which will do so for all the models but I''m
sure something like that should already be existing.I
2005 Apr 06
1
File browser doesn't remember last directory over Dfs
Hi,
I have encountered some strange behaviour after upgrading to
3.0.12 on FreeBSD 4.10 file servers.
Normally when users on windows apps use the file browser to select
a file it remembers the selected directory between invocations, so
that, for example, they can easily read in multiple files from
the same directory, or if they click on Save As... it takes
them to the directory where they
2005 Oct 25
3
How to get the source code for login generator
Hi,
I installed login generator using gem. It''s installed and it''s working fine.
I wanted to browse the source code of login generator installed by gem. I
couldn''t find the source code anywhere.
Thanks.
-=- Neeraj
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Aug 09
6
How to change the error message easy way
validates_presence_of :fname
results in the error message
"Fname can''t be blank".
What I want is "First Name can''t be blank".
I could do this
def validate
errors.add_to_base("First Name can''t be blank") if fname.blank?
end
I find this clunky and I have to put everyrhing in the validate method. Is
there an easy to get what I want.
I
2006 Jul 26
2
How to highlight the search term in the search result
In the ''basecamp'' product from 37signals if I search for ''ruby'' the I get a
bunch of results. In the search result page the search term (ruby in this
case) is highlighted.
I was wondering how to accomplish the same.
How to highlight the ''search term'' in the search result? Is there any
already existing utility that I could use?
Thanks.
2006 Apr 27
2
How to override pagination_links method
I intend to override pagination_links method.
I added following lines of code in application_helper.rb
module ActionView
module Helpers
def pagination_links(paginator, options={}, html_options={})
raise("boom!!")
end
end
end
But my code is not executing my code. The view is still using the method
pagination_links from rails.
What''s the correct way to override
2006 Jan 31
2
Relationship navigation issue
class Event < ActiveRecord::Base
belongs_to :venue
belongs_to :category
end
class Venue < ActiveRecord::Base
belongs_to :city
end
class City < ActiveRecord::Base
belongs_to :state
end
I want to retrieve all event records belonging to a state. Coming from
hibernate background I tried something like this:
def self.list_for_a_state(state_id)
find_by_sql(["select e.*
2006 Jul 05
2
How to write get functional test when there is no action by that name
I have following line in route.rb
#event info for an event name
map.connect ''event/:name_url'',:controller => ''home'',:action =>
''event_info''
It causes a URL like http://localhost:3000/event/_jewels_exhibition_ to be
sent to the home controller with action as ''event_info''.
I am trying to test this action. My first
2003 Apr 25
0
Cannot sync browser lists across subnets
I've recently setup a Samba Local Master Browser on a new subnet. It can
communicate on ports 137 and 138 across subnets with my Samba Domain
Master Browser, but when I query the Local Master, I don't get a
complete browse list.
The following entries shows up in /var/log/samba/log.nmbd at the local
master:
nmbd/nmbd_browsesync.c:domain_master_node_status_fail(262)
2006 Nov 04
0
sharing a partial across multiple controller views.
Hello,
I was wondering if there was a way to share a partial across multiple
controller views? In other words, if I have 2 controllers, the
corresponding directory structure for the views of those conrollers would
like so:
views/controller1/<views>
views/controller2/<views>
I would like to share the partial between controller1 and controller2.
Could I make a share directory under
2006 Jan 14
3
How to render from a different controller
My code is something like this.
class FirstController < ApplicationController
def foo
#some processing
render (:controller => ''second'', :action => ''index'')
end
end
I tried using both render and redirect but it seems it''s not possible to
send the control from within a controller to some other controller. Am I
missing something
2005 Oct 14
1
Diff between attr_accessible and attr_accessor
I''m going though the paper back edition of agile development with Rails. On
page #128 I encountered following lines of code:
attr_accessor :password
attr_accessible :name,:password
What''s the difference between attr_accessor and attr_accessible?
-=- Neeraj
_______________________________________________
Rails mailing list
2006 Jul 27
7
''remember me'' using cookies
I''m about to implement this, and I''m thinking of storing the user''s id and
their hashed password in the cookie after a successful authentication.
can any see an obvious security issue with this? I know the method is
vulnerable to cookie theft but am i missing anything?
thanks
alan
2007 Feb 10
5
acts_as_authenticated strangeness
hi
the strangest thing is happening. on my local machine
acts_as_authenticated works fine, but whe on the server [dreamhost] it
refuses to log in. no error messages. nothing. just reloads the login
page again.
here`s my action:
def login
return unless request.post?
flash[:notice] = "Incorrent login"
self.current_user = User.authenticate(params[:login],
params[:password])
1997 Sep 08
0
No subject
After upgrading to 1.9.17p1 (Solaris 2.5.1) I am getting
continuous errors like the following. I have numerous
samba servers, one of which is configured as a wins server,
2 winNT servers (primary and backup, but not running as
wins servers). These messages are constant, even on this
Sunday night with virtually no network activity.
Sep 7 23:09:15 deltoid nmbd[8169]: reply_netbios_packet:
2006 Jan 03
0
how to send cookie value from rails app to browser - newbie
Hi
I am writing a multilingual app, now from sasa''s ruby
gettext<http://manuals.rubyonrails.com/read/chapter/105>instructions,
i have made it so far that it works if i manually type alsong
with the url ?lang=en or ?lang=fr , but i don''t know how to have rails do
that automatically , i tried to read some material on cookies and sessions ,
but could not understand it
2007 Sep 11
2
How to search with range when I am using AAF
acts_as_ferret :fields => {
:name => {:},
:desc => {},
:start_date => {}
}
def start_date
self.start_datetime.strftime("%Y%m%d")
end
Now that I am strong start_date in YYYYMMDD format, I want to search for
all event in between 20070506 and 20070809
What will my query look like when I am using aaf. This one doesn''t work
2010 Feb 01
2
how to write a function that remembers its state across its calls
Hi,
I wonder how to write a function that remembers its state across its
calls. For example, I would like to compute the average of the pass three
values the function has seen
f(1) # NA
f(2) # NA
f(3) # 2
f(4) # 3
This would require f to keep track of the values it has seen. In other
languages like c++ or java it is easy to do by having a member variable. I
am not sure how to do similar
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All,
Hope this note helps the newbies to Rails
As I''m new to Rails, I''d like to share how I tracked down Safari''s
dropping of my cookie.
My Applebug no: 11003492 registered 7 March/2012
My development platform:
MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b)
Problem:
Firefox worked as programmed but switching to Safari my
current_user_token kept in the