Displaying 20 results from an estimated 80000 matches similar to: "Rails setup process (from HTTP request to root router loaded)"
2010 Apr 21
4
Accessing the router from a helper
I find manually accessing the router to be quite ugly below. Is there
a more direct way to access it?
module ApplicationHelper
def menu_item text, url = nil
routes = ActionController::Routing::Routes
url = if url
if url.is_a? String
url
else
routes.generate url
end
else
routes.generate :controller
2013 May 29
5
Can't setup Rails with RVM in ubuntu 12.04
I''m doing setu Ruby on Rails with RVM.
I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully
But I can''t setup Rails with command : gem install rails because of
error:
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (=
3.2.13), actionpack (= 3.2.13), activerecord (= 3.2.13), activeresource
(= 3.2.13),
2013 May 20
6
MapServer setup with rails in ubuntu 12.04
Hi i have one rails application in which i need to setup the mapserver i
have added the gem https://github.com/sourcepole/ruby_mapscript
but while running the command
require "rubygems"
require "ruby_mapscript"
include Mapscript
it use to tell me
LoadError (cannot load such file -- mapscript):
can anybudy help me on this
Thanks in Advance
Arvind
--
You received
2010 Dec 21
3
Request for comment on post on SEO QuickStart for Rails
Hi,
http://programmers-blog.com/2010/12/21/quick-start-to-seo-for-ruby-on-rails
What do you think about this guys?
I looked through the whole Internet ;) and found nothing simple that
would suit my simple needs. So I did these things on my own and wrote
about the process.
Thanks for any comments!
Regards,
M&W.
--
Posted via http://www.ruby-forum.com/.
--
You received this message
2012 Feb 01
10
Very strange problem: Ton's of ruby process just running simple command "rails --version" or "rails
Very strange problem: Ton''s of ruby process just running simple command
"rails --version" or "rails new test1""
I have very strange problem. I try to run this simple command
"rails new test1" --> this suppose to be create a new rails site.
"rails --version" --> even this I got ton''s of ruby process
but I got a lot of ruby
2010 Dec 31
6
HTTP Accept header wildcard breaks rails app
The thunderstone crawler (http://search.thunderstone.com/texis/
websearch/about.html) sends the folliowing HTTP accept header when
requesting pages
Accept: text/*, application/javascript, application/x-javascript
This results in a "Missing template" exception
text/* is valid. How do I tell my rails app to treat this as rhtml by
default instead of returning a 500?
Missing template
2013 Apr 13
3
Cannot reach http://localhost:3000 after starting Ruby on Rails server
I cannot reach http://localhost:3000 after starting Ruby on Rails
server when running Windows 8. After running rails server in the
directory that I want the server to start, the following prompt shows
up:
C:\Users\Brian\railsapp>rails server
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown
2012 Dec 03
2
Rails 3.2 session id nil until next request
Posted this on stack overflow earlier today here<http://stackoverflow.com/questions/13673969/rails-3-2-session-id-nil-until-next-request>,
I really either don''t know what I''m doing, or I don''t understand how
sessions are supposed to work!
I''m connecting to rails from an Air app and communicating with JSON only.
When the client sends a login request,
2010 Aug 04
7
Rails is slow to load
Hi,
I was just wondering if this was normal or not.
I was running ruby 1.8.7 with rails 3 - rc. (Currently trying 1.9.2-
rc2 but the same problem)
It takes rails a while to load. (a while as in 10-15 seconds)
It will take a while before I can use the console , or before running
a test or starting up the server.
This doesn''t seem normal to me when I watch some screencasts.
If this is
2013 Apr 24
1
URGENT:Rails application crashed for 700 request per minute.
Hi,
We have our rails application running on AWS. we have two application
servers and one database(postgres) server of C1.xlarge
<http://aws.amazon.com/ec2/instance-types/> AWS instance type.
Our passengermaxpoolsize is set to 30. And postgresql max connection limit
is 100.
Recently we found that when we got nearly 700 request per minute, our
application created nearly crossed the
2010 Dec 09
15
Rails 3 Active Record query returns "undefined method `loaded?' for #<Array:0x126a4c>"
I am getting this error on an rspec test:
undefined method `loaded?'' for #<Array:0x126a4c>
When I call:
Practice.includes("practice_members").all
Practice has_many :practice_members
PracticeMember belongs_to :practice
Practice.all returns:
[#<Practice id: 6, name: "Practice One", created_at: "2010-12-09 15:40:46",
updated_at: "2010-12-09
2013 Jan 22
2
Rails 4: Should a HEAD request not be handled like a GET for CSRF protection?
I am running a Rails 4 app in semi-production and I constantly get
exceptions from crawler bots that use a HEAD HTTP method, which causes the
CSRF protection to kick in.
Shouldn''t HEAD requests normally be handled like GET requests?
I am not sure if I''m just being stupid or that hit is a bug somewhere.
Michiel
--
You received this message because you are subscribed to the
2010 Apr 21
3
Anyone else notice that http://api.rubyonrails.org has been hijacked?
???
--
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 email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
2013 Mar 29
2
help me test how many requests can be available for one server in Ruby On Rails?
I am try test how many requests can be available for one server in Ruby
On Rails but i don''t know how to do?
I read some Page but i want ask some one can explaint more clearly this
problem.
If someone had done this problem can give me some advice?Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on
2011 Aug 03
14
[root :to => "home#index"] not working
I have done the changes in the file config/routes.rb as mentioned in the
Rails Guides tutorial, but when I try to open:
http://localhost:3000
the page is not opening. It is giving error.
--
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
2011 Dec 23
6
http session nil
hi all,
i am new in ruby on rails,i have one issue regarding the session in ruby
on rails.I am using session , i have following condition in my rhtml
<%if @session[''user''].first_name == "admin"%>
<table width="290" border="0" height="20" align="right"
cellspacing="0"
2010 Sep 26
2
Rails 3 - Loading a Subnav with Ajax… Which controller owns a subnav?
Once my Rails 3 app is loaded, a user can click an item which needs to
then load a dynamic subnav.
My thinking is (since it needs to be dynamic) is onClick to make a
jQuery AJAX call to the server and then to inject the HTML response
into a DIV on the page...
What I''d like your advice on is how/where the subnav logic should live
in the rails app, as I don''t have a navigation
2010 Jan 20
2
Rails 3 Problem: no such file to load -- rails (LoadError)
I just ran the gem bundle on the third_rails demo app, but for some
reason rails can''t be loaded!?
kristian-mandrups-macbook-pro:third_rails kristianconsult$ rails -v
Rails 3.0.pre
kristian-mandrups-macbook-pro:third_rails kristianconsult$ script/
generate model Post name:string
/Users/kristianconsult/my_rails/rails3_apps/third_rails/config/boot.rb:
71:in `require'': no such
2011 Apr 30
1
[rspec-rails] Is it bad form to use spec/requests/*_spec.rb for integration tests?
So I wanted to cook up a quick integration test for something, and I''m
using rspec. I personally just don''t like Cucumber - just a personal
preference, not a slam to the test framework at all - and wanted to
stick to just pure rspec. So I dumped a quick spec file in spec/
reqests and ran it, and of course everything works.
But is this considered bad form, or a less-than-good
2010 Nov 21
6
Access denied for user 'root'@'localhost' (using password: NO)
I am getting this message after run: ruby script/server and click in
"About your application environment" in the browser.
--
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