Displaying 20 results from an estimated 60000 matches similar to: "Rack in Rails"
2012 May 16
7
Rails 3.1.0 cannot connect to sqlite database on Mac Lion
I''m running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. I need to back down rails to 3.1.0 for a project but when I do that a simple index page give me a
ActiveRecord::ConnectionNotEstablished
error.
Rails 3.2.3 works, 3.1.0 not. Any ideas?
Just to show you it''s nothing fancy....
Gem file is only:
source ''https://rubygems.org''
gem
2010 Jun 14
3
How do I upgrade rack in my current rails app?
Hi,
I have a rails 2.3.8 app which has rack 1.1.0.
I get parse_multipart error.
There''s a new release of rack 1.2.0 which might fix the multipart error.
The question is how I upgrade the rack?
I froze the rails.
I did "gem update rack" and it upgraded rack to 1.2.0.
But my rails app still uses rack 1.1.
How do I set the rails app use rack 1.2.0?
Thanks.
Sam
--
Posted via
2010 Feb 04
3
Rails / Rack version mismatch
I attempted to install rails, with these error messages:
$ sudo gem install rails
ERROR: Error installing rails:
actionpack requires rack (~> 1.0.0, runtime)
$ sudo gem install rack
Successfully installed rack-1.1.0
1 gem installed
$ sudo gem install rails
ERROR: Error installing rails:
actionpack requires rack (~> 1.0.0, runtime)
Why does gem install a current version of rack which
2011 Mar 14
7
Rails server not works - yesterday worked fine
Hello there,
I''ve a big problem -- I come now PC and started rails server and I got
this huge report of errors. The rails server is not running, I''ve any
idea, what is wrong. Yesterday everything worked yet...
The statement after command "rails server" is here:
=> Booting Mongrel
=> Rails 3.0.5 application starting in development on
http://0.0.0.0:3000
=>
2012 Sep 04
2
How to get contact list from yahoo in rails using OAuth
I can successfully get the contacts from google using OAuth gem in rails.
my gmail configuration is :
:google=>{
:key=>"***",
:secret=>"***",
:expose => true,
:scope=>"https://www.google.com/m8/feeds/"
}
now i want to get contact from yahoo and hot mail. How to get that contact
I have given following configuration in my
2012 Feb 26
15
ActiveRecord::ConnectionNotEstablished
Hi,
I am trying the tutorial in:
http://guides.rubyonrails.org/getting_started.html
when I try to navigate to http://localhost:3000 after the 4.3 change
I get the error : ActiveRecord::ConnectionNotEstablished
and I don''t know how to solve it
the database.yml file is:
adapter => mysql
host => 127.0.0.1
database => blog
username => root
password => *****
my
2010 Sep 03
1
Rack gem in not getting unpacked
Hi All,
my server is having rack gems as:
rack (1.2.1, 1.1.0, 1.0.1, 1.0.0)
when i run the following command in my project/vendor/gems folder:
gem unpack rack-1.0.0
It shows the following error message:
Error: Gem ''rack-1.0.0'' not installed.
Any idea on this??
Thanks,
Saurabh
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
2010 Sep 21
6
Iterate HashWithIndifferentAccess
How do I iterate a HashWithIndifferentAccess? I need to set the order
using a sortable_element.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2011 Sep 02
4
You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3.
Hi, guys,
I got the below error message when i typed this command in terminal "rackup
config.ru" , the file config.ru is rails ''s configuration file.
You have already activated rack 1.3.2, but your Gemfile requires rack 1.2.3.
Consider using bundle exec. (Gem::LoadError)
So, how should i do , thanks a lot.
--
You received this message because you are subscribed to the
2012 Oct 02
4
Rails Default ETag Generation
How does Rails generate ETags by default? I''ve got config.action_controller.
perform_caching set to true in production so that I can use page-level
caching in a few specific places, but it seems that Rails is automatically
setting ETags on *all* responses even though I''m not using fresh_when or
the stale? helpers in any of my actions. How is Rails deciding to do this
and how
2010 Jan 26
7
updated rails now missing rails gem
So i updated rails and this is now what i''m getting.
i tried reinstalling rails and it didn''t help. it''s installed.
this is driving me nuts.
i''m at rails 2.3.5 and ruby 1.8.7
Missing the Rails gem. Please `gem install -v= rails`, update your
RAILS_GEM_VERSION setting in config/environment.rb for the Rails version
you do have installed, or comment out
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me)
Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class
So I''m using...
app/assets/javascripts/people.js.coffee and put in...
2010 Feb 05
2
Edge Rails 3: Mongrel stuck in infinite loop, Unicorn missing uninitialized constant Rack::Runtime
Hi,
I wanted to try out Edge Rails 3 today and hit a serious problem
trying to run mongrel.
script/rails server mongrel just hangs. Interrupting and looking up
the spot of the lockup revealed
$LOAD_PATH.unshift ''projects/mongrel_experimental/lib/''
Mongrel::Gems.require ''mongrel_experimental'',
">=#{Mongrel::Const::MONGREL_VERSION}"
at the bottom
2010 Jan 05
6
thin server claims I don't have correct rails gem installed
Hi everyone, I need some insight into a problem I just started having.
I''m running ruby 1.8.6 on an ubuntu box with the following gems
installed:
$ sudo gem list --local
*** LOCAL GEMS ***
actionmailer (2.3.5, 2.3.4, 2.3.2, 2.2.2)
actionpack (2.3.5, 2.3.4, 2.3.2, 2.2.2)
activerecord (2.3.5, 2.3.4, 2.3.2, 2.2.2)
activeresource (2.3.5, 2.3.4, 2.3.2, 2.2.2)
activesupport (2.3.5, 2.3.4,
2011 Nov 05
3
How to get Rails 3.1's Cache store (FileStore) to work with Rack::Sendfile
Hey - I need your input regarding a problem I''ve come across. I''ll first
explain what the problem is, and what I think the solution is. If I
misunderstood how things work, please let me know.
# The problem
I''m using Dragonfly (on-the-fly file processing) to serve images. Dragonfly
uses Rack::Cache to cache the processed images so subsequent requests are
served by
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to
https://www.mysite.com
I tried the following:
class ApplicationController < ActionController::Base
before_filter :check_uri
def check_uri
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri if !/^www/.match(request.host) if Rails.env ==
2010 May 09
7
"File not found: lib" installing rails-3.0.0.beta3 on my Mac
I''ve always distrusted the ruby and rails installs on my Mac (oOS X
10.6.3) -- sudo gem cleanup can''t seem to get rid of old gem versions
(lots of Gem::InstallError: cannot uninstall).
Because of that, I don''t trust the rails beta3 install I just
completed. Here''s the story:
* config is Apple''s ruby 1.8.7 and gem 1.3.6.
* xcode is installed from
2010 May 25
8
params merge on for every action
hi
i got to merge a hash of parameters for every action for every
controller. the only thing i could image is modifying a super class
method.
so, how could i modify the method that take care of setting up the
parameters? is it ActionController.parameters?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile
I can reproduce this problem on a completely fresh Rails 3.0.7 app
with no special gems. This seemed to work well in Rails 2 but for some
reason is hiccuping here, not sure what''s different in Rails 3 that
makes this hiccup. If you look at the stack track, it doesn''t even
pass through my app stack once -- weird --
2010 Jun 04
4
Mac OS/X and Rails 3 ?
Hello List,
Label me a newb, but how do you install Rails 3 on your Mac?
Google sent me to these URLs:
http://weblog.rubyonrails.org/2010/2/5/rails-3-0-beta-release/
http://guides.rails.info/3_0_release_notes.html
http://asciicasts.com/episodes/200-rails-3-beta-and-rvm
From early Feb 2010 I see this short recipe:
gem install tzinfo builder memcache-client rack rack-test rack-mount
erubis mail