similar to: Browser Detection

Displaying 20 results from an estimated 3000 matches similar to: "Browser Detection"

2006 Jan 27
3
Problem setting multi-value cookie
I''m trying to set a multi-value cookie but for some reason it''s not working. Any help would be appreciated. cookies[:user] = { :value => {:email=>params[:login][:email], :passwd=>params[:login][:passwd]}, :expires => 30.days.from_now, :path => "/login"} -- Thiago Jackiw
2006 Feb 01
3
Problem using form_remote_tag and multipart
I have a form and e file field, and what I''m trying to do is when the file is uploaded, a div shows the uploaded image using ajax, without refreshing the page. But the problem I''m having is that with form_remote_tag it won''t accept :multipart => true. Any ideas? Thanks a lot
2006 Aug 05
2
Frustrating locale setting error
Hi all, This has been very frustrating for me trying to get this acts_as_ferret working well on a Fedora box. On my mac it works great, no problems with locale, but when I put the code live on my Fedora server, it complains about the locale setting (Error occured at <analysis.c>:498 Error: exception 2 not handled: Error decoding input string. Check that you have the locale set
2006 Jan 16
1
(no subject)
Hello, I''m new to ruby on rails, migrating from php, and I have some questions: 1- How do I work with null objects without returning the rails error to the user? Like if I''m searching for a record and no record''s found, how would I deliver my custom message to the user? 2- How does the ''nil'' object work? Thanks -------------- next part --------------
2006 Jan 20
2
Creating thumbnail on the fly
I was doing some research about creating thumbnail images on the fly after an image has been uploaded in a form, but for some reason it''s not working for me. I''ve downloaded ImageMagick 6.2.5 for Mac but when I run a test (identify image.gif) it gives me this error: dyld: Library not loaded: /sw/lib/libjpeg.62.dylib Referenced from: /Developer/ImageMagick-6.2.5/bin/identify
2008 Apr 26
1
Best cron job method for email notifications?
There are so many ways to do cron jobs in Rails (Backgroundrb, script/ runner, etc.) but I am wondering what would be the best to use in production, just for sending out email/SMS notifications? For example, an email automatically gets sent a day before the due date of a project milestone. Thanks for the help! --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some info or just give me an explanation. thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi I just did an update to lates trunk ================= context "Given a generated venue_spec.rb with fixtures loaded" do fixtures :venues specify "fixtures should load two Venues" do Venue.should have(2).records end end ================== gives me ========== 1) TypeError in ''Given a generated venue_spec.rb with fixtures loaded fixtures should load two
2009 Feb 09
3
can't call request.remote_ip from object?
class User def update_metadata self.update_attributes({:last_login_at => Time.now, :last_known_up => request.remote_ip, :last_known_user_agent => request.user_agent}) end This does not work. It bombs out with: undefined local variable or method `request'' for #<User:0x1e146e0> But the request calls work in a
2006 Feb 03
5
writing my own generator
Hi all, I wanted to write my own generator. What would be a good starting point. Is there any documentation on this, Best practices, etc? Regards, Harm de Laat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060203/c64c4730/attachment.html
2006 Apr 17
6
Is there anyway to make Rails NOT cache?
Is there anyway to make Rails NOT cache? I''m getting caching in the browser and the server. I have to restart Lighttpd after every view change to see the results. Thanks, phill
2006 Feb 19
2
Asynchronous Encryption?
Hi Railers, I''m looking for something to do asynchronous encryption - where the encryption and decryption keys are different. This is for a scenario where I want to be able to store some information in the database that can only be decrypted in a different physical location using a secret private key (which will not be stored on the machine doing the encrypting). I''m trying
2006 Mar 14
4
validates_confirmation_of has stopped working
Hi Railers, I''m past considering myself a noob in Rails land - I think what I''m up against here is more of a bug or an anomaly that I''m unaware of (or that has changed in a recent version). I had a fully working validates_confirmation_of :email_address field in my app - was one of the first things I set up, extremely simple, been working for a long time. Then one
2006 Apr 04
1
"uninitialized constant Reloadable" error heads-up
I can''t duplicate this problem on my local machine, but also can''t find any mentions of it on the Gmane archive, so thought I''d just throw in a quick mention in case anyone else comes across it. On Textdrive, using gem rails 1.1, in an app that works fine on my local machine, I get the following error in my production.log: "uninitialized constant
2006 Mar 13
6
noob question!! auto fill forms
I''ve been using rails for about 3 months and have a pretty cool app going, but i need to auto-fill some form data. is this possible? i would think so. well anybody to lend me a helping hand, much appreciated. -- Posted via http://www.ruby-forum.com/.
2006 Apr 16
4
wsod since upgrading to 1.1
I just upgraded to 1.1 and I am now getting the wsod for errors that used to display on the screen. E.G. NoMethodError gives wsod. Does any one know what caused this and how I can go back to the previous behavior? -- Posted via http://www.ruby-forum.com/.
2006 Feb 11
4
Starting Ruby On Rails
Hi, i m a web developer(php,ajax). i want to start with ruby on rails. can one suggest me online tutorials for ruby on rails? How would i start with ruby on rails,i knew something about ruby? editor for ruby on rails? Plase..... Thank You. -- Posted via http://www.ruby-forum.com/.
2006 Mar 30
9
script/console not working after Rails 1.1 upgrade
Whenever I do script/console I get an error message: Loading development enviroment. c:/ruby/lib/ruby/1.8/irb/init.rb:151: in ''parse_opts'' : undefined method ''upcase'' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/1.8/irb/init.rb: in ''setup'' from c:/ruby/lib/ruby/1.8/irb/init.rb:54: in ''start'' from c:/ruby/bin/irb:13
2008 Apr 29
1
Spec''ing controller macros
Hi, (This is my first post after months of appreciative lurking...) I''m trying to spec the following conditional controller macro: class ApplicationController < ActionController::Base # turn off session management for robots session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slurp)/i } # ... end My current attempt seems to be quite unsuccessful: 1) when I
2006 Apr 05
6
rake freeze_gems errors
I''m having problems trying to freeze local rails gem to my app with: rake freeze_gems On OSX 10.4.6 i get the following error: Illformed requirement [=#<Gem::Specification name=rails version=1.1.0>] This is the full output: Freezing to the gems for Rails 1.1.0 rm -rf vendor/rails mkdir -p vendor/rails cd vendor/rails Unpacked gem: ''activesupport-1.3.0'' mv