similar to: get server address (rails server)

Displaying 20 results from an estimated 90000 matches similar to: "get server address (rails server)"

2010 Jan 21
4
Redirect www to non-www
How to redirect www to non-www? e.g redirect www.example.com to example.com Thanks Johnny -- 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
2013 Oct 07
3
Get current url
Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env[''HTTP_HOST''] and now i want get current url in environment.rb file or intializer folder files Regards, Daya. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from
2010 Jan 09
5
Redirect 301 and cache
I want my rails app to redirect from no-WWW to WWW domain (for example if I enter example.com/test to redirect to www.example.com/test). I put the following code in the application controller and worked fine: before_filter :check_uri def check_uri if !/^www/.match(request.host) redirect_to request.protocol + "www." + request.host_with_port + request.request_uri, :status => 301
2012 Feb 10
2
My Host
I need to get some absolute redirects working -- basically I set callback hooks to external services, but I want these hooks to use my configured CNAME''s. I''m trying to find a way so that my app doesn''t have to know about these CNAME''s. So I''m looking at the request in the controller to try and get the base URL where I''m running. To
2011 Aug 29
1
jquery datepicker not working with nested forms rails 3
Hi people I have a problem with the Jquery "Datepicker". If I use datepicker in a simple-form, I have no problem... but I need to use it in a nested form that add fields dynamically, and everytime I add new fields I have a field that needs to use datepicker. I''ve reading the web, and many people have the same problem, but nobody get a solution for this issue Could you help
2010 Sep 08
4
On init webrick get older rails version (suddenly)
Hi! I''m running rails 2.3.8, confirmed by the prompt (rails -v) I''m doing a project and on other occasions I have needed install nested forms. I followed the steps (http://weblog.rubyonrails.org/2009/1/26/nested-model-forms) This steps: $ git clone git://github.com/alloy/rails.git $ cd rails $ git checkout origin/normalized_nested_attributes $ cd ../.. $ ruby
2012 May 27
2
Setting Up A Rails App With Passenger
Been trying to get Passenger installed and setup to run a rails app. Everytime I goto eaa.mysite.com in Firefox the web browser goes out to the Internet instead of serving up the website. Why does this occur? Below is part of the configuration for apache2.conf: ======================================================= # Setup a virtual host for the rails apps to run in. <VirtualHost *:80>
2011 Aug 25
2
Problem with rails generaterspec:install, Error-Message: no such file to load, sprockets-railtie (loadError)
Hey guys, I''m a RoR-Beginner and I started learning it with the RoR-Tutorial. Actually I''m at this chapter (http://ruby.railstutorial.org/chapters/ static-pages#top) and try to install rspec. But everytime when I try to use "rails g rspec:install" I get this error message: C:\Sites\rails\rails_projects\sample_appp>rails g rspec:install
2011 Dec 14
3
Rails Wiki content not appearing
Hi everyone, I apologize in advance for the newbie question, but I haven''t been able to view any content on the Rails Wiki pages. All I get are the Table of Contents and the Discussions. I am able to view content when I click on "View Page Source", but obviously this is not ideal. I''m using Chrome16 and Firefox8. Thanks, Mike -- You received this message because
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2010 Nov 01
1
Encoding::UndefinedConversionError on a simple file upload (rvm, MRI-1.9.2-p0, rails 3.0.1, apache+passenger)
Hello everyone. I am having the encoding issue on a simple file upload action: Encoding::UndefinedConversionError in MainController#upload "\xC4" from ASCII-8BIT to UTF-8 The action looks like this: def upload @uploaded_io = params[:upload] File.open(Rails.root.join(''public'', ''images'', @uploaded_io.original_filename), ''w'')
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 Oct 10
4
How do we get the End of Line date for the gems which we are using Ruby on Rails?
Hi All, I want to know the EOL date for the below gems for ROR. Can anyone help me how to find the EOL dates - authlogic - will paginate - oauth-plugin 0.3.14 - statistics 0.1.1 - YUI - cucumber 0.6.4 - cucumber-rails 0.3.0 - rspec 1.3.0 - rspec-rails 1.3.2 - webrat 0.7.0 - factory-girl 1.2.4 - database_cleaner 0.5.0 - SSL requirement - calender_select
2010 Mar 16
4
Get content from HTML element in Rails
Hey, I''m looking for a way to get the content of my div in my Rails view. I would like the literal HTML content, so only HTML and no Rails I thought inner_html would work, but I get a RJS exception (TypeError: $("content").innerHtml is not a function) Does anyone know how I can get the content? Thanks! In my controller I use this code: [code] def save_test render :update
2010 Nov 04
11
Address already in use - bind(2) (Errno::EADDRINUSE)
After trying all things in : http://www.ruby-forum.com/topic/105271 I cannot find the pid of the clogger. So, I am still having trouble clearing whatever is active on my localhost port 3000. I can run on a different port "script/server -p 3001" . But my OC would like to have all ports on my machine clean and usable. Below is my error - please help. Thanks! When I try to start the
2010 Jan 24
2
Rails server error when rails starts
Hi guys, i am having a little problem. I have installed ruby 1.9.1 and rails 2.3.5. Ruby is working just fine. The rails applications is being created fine. But when i run the command ruby script/server i get an error that says "The program can''t start because msvcrt-ruby18.dll is missing". I googled this message and is pointed to this page:
2010 Jul 23
2
How to get remote hostname from behind mongrel cluster in rails?
Using request.env[''REMOTE_HOST''] worked with WEBrick, but returns blank when running behind mongrel cluster. For IP Address, I am able to use request.remote_ip. Thank you. -- 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 Mar 17
7
Beta Invitation in Rails 3, little problem
INVITATION BETA EMAIL I have in the email that the app send to friend''s email address ------------------------ You are invited to ExampleApp.com click below to signup http://localhost:3000/signup.efweiuvwnjernfwkefwebhsohj ------------------------ But I have a dot in the url beteween http://localhost:3000 and the token I wish the following url
2011 May 18
9
Address already in use - bind(2) (Errno::EADDRINUSE)
I made a new rails app and when i started the server ,it gave following error message. => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/lib/ruby/1.8/mongrel/tcphack.rb:12:in `initialize_without_backlog'': Address already in use - bind(2) (Errno::EADDRINUSE) from
2013 May 29
2
Why can't get remote javascript libraries on Rails 4
In rails 3, I included this line: *<%= javascript_include_tag "http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js" %>* But when migrate to rails 4, its not posible and I get the next error: *Invalid argument - C:/Ruby193/findiner/app/assets/javascripts/http://cdn.leafletjs.com/leaflet-0.5.1 * So far, I won''t be able to get remote libraries. Thanks for help! -- You