Displaying 20 results from an estimated 7000 matches similar to: "Rails3 -- Replacement for ActionController::Base.relative_url_root?"
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external
asset host. I''ve got the lines below in my environments/development.rb
file.
# Enable serving of images, stylesheets, and javascripts from an asset server
config.action_controller.asset_host = "http://assets.example.com"
#make rails think it lives in /app
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi. In my environment.rb, I have:
ActionController::AbstractRequest.relative_url_root = "/foobar"
In my layout, I have:
<%= javascript_include_tag :defaults %>
Question 1:
I am getting an error:
ActionController::RoutingError (no route found to match
"/javascripts/prototype.js" with {:method=>:get}):
When I remove the relative_url_root, everything works great.
2009 May 06
0
Setting config.action_controller.relative_url_root isn't working
Hi everyone,
I''m trying to set the "config.action_controller.relative_url_root"
config value but it isn''t working:
config.action_controller.relative_url_root = "/de"
When i try to view the http://localhost:3000/de page it gives me a
"Routing Error", but if I try http://localhost:3000/ it works
perfectly. Any idea about what this might be?
-
2009 Mar 26
0
Error On relative_url_root
I''m attempting to mash together Adva CMS'' Fckeditor and the Fckeditor
plugin provided by Scott Rutherford.
http://blog.caronsoftware.com/2008/6/21/fckeditor-plugin-0-5-1-released
The Scott''s plugin has a controller than handles the Fckeditor file
upload and browse, but it errors out on the following lines.
def upload_directory_path
uploaded =
2006 Mar 07
0
setting relative_url_root for static files in webrick
Hi,
I am using webrick and want my application not be available on
http://localhost:3000/ but http://localhost:3000/rails.
So I found out I can set
ActionController::AbstractRequest.relative_url_root = "/rails"
in environment.rb.
This works for controllers without further modifications. But for the
static files, I have to put a "rails" directory into the public
directory, and
2011 Feb 10
3
ror 3 + apache2 + passenger = apache test page
I set up Passenger on manual -
http://wiki.rubyonrails.org/deployment/apache-passenger
Passenger and Apache install without errors.
/etc/httpd/conf/httpd.conf:
>> ...
>> LoadModule passenger_module
>> /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2/
>> ext/apache2/mod_passenger.so
>> PassengerRoot /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.2
>>
2008 Jan 09
1
relative_url_root and problems with CSS url()
I''m using relative_url_root to allow my app to be run from a sub-
domain. Things work fine except with images that are referenced in my
CSS code.
For example,
background-image: url(/images/bg_image.jpg);
does not take into account the value in relative_url_root.
Consequently, my background image (and other images similarly
referenced in my stylesheet) are not loadable.
Anyone know a
2012 Jan 16
0
Rails3 logging issue in development.log
I have a rails3 app, i need to log all into development.log, But when i
check after the execution, the development.log is empty...How to rectify
this problem...
*development.rb*
*
*
ApiMofobi::Application.configure do
# Settings specified here will take precedence over those in
config/application.rb
# In the development environment your application''s code is reloaded on
#
2010 Nov 08
0
Rails3: "rake test" task does not run tests.
Hello all,
I have a spiffy new rails3 app for which I can run tests individually,
but not via rake. Behold!
> $ ruby -Itest test/unit/test_user.rb
> Loaded suite test/unit/test_user
> Started
> .
> Finished in 0.466033 seconds.
>
> 1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
>
> Test run options: --seed 21789
and
> $ rake test:units --trace
> (in
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all.
I have two apps. One is a rails3 app and the other is a rails 2 app.
Using proxying I am routing actions in the myapp.com/foo to the rails2
app.
It almost works! I can set a session variable and a cookie variable on
the first app (myapp.com) and then read them on the second app
(myapp.com/foo).
It only works the first time though. If I go back to myapp.com and
then revisit
2010 Jun 04
8
unicorn_rails cleanup (possible fix for Rails3) pushed
Hi all,
I''ve pushed the following patch out go git://git.bogomips.org/unicorn
along with a few other Rails-related test updates. This is more of a
shotgun fix (but less code is better :) since I haven''t been able to
reproduce the brokeness people have been seeing with "unicorn_rails"
and Rails 3 betas.
Even though "unicorn" works perfectly well for Rails3,
2010 Sep 12
0
observe_field for jquery + rails3
I am porting one application to Rails3 and want to know what is the
right way to do "observe_field" with Rails3?
--
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
2010 Oct 21
0
attachment in the database with thumbnail generation - rails3
What is the best solution for handling blob database storage with
rails3?
I used attachment_fu before, but it doesn''t seem to work well with
rails3. Anyone got it working?
paperclip seems nice, but i need database storage for backups and
security.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2008 Jan 31
2
Facebooker and file_column
Facebooker URL Rewriter stuff overloads ActionController::AbstractRequest.relative_url_root, causing a conflict with the plugin file_column and possibly other utilities. file_column constructs image URLs using the server host and relative_url_root
This is not related to the sandbox patch I added to the rewriter. Facebooker overloaded relative_url_root before I touched it.
I''ve
2010 Aug 30
1
in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
I''m a newb here and probably shouldn''t be using Rails3 yet to start with,
but for some reason I was feeling adventurous.
I''m also learning to use rspec along the way and things ''were'' working out
with my ''rake spec'' until I tried to follow some examples for test
Authlogic with rspec.
I ''think'' what started the
2006 Jan 04
1
[BUG?] image_tag
i''ve got the latest ruby and rails on this box and am seeing that image_tag
will turn something like
/foo/bar.jpg
into
/foo/foo/bar.jpg
in the following situation:
/ror/foo/public
/var/www/html/foo -> /var/ror/foo/public/
image_tag("/foo/bar.jpg")
this is exactly how compute_public_path is written to work:
def compute_public_path(source, dir, ext)
2010 Nov 24
2
Puzzled about the rspec tests generated by Rails3
Hi all
I am puzzled about the rspec tests that are generated by Rails3
scaffolding. I am however not sure if this is the correct place to
discuss this issue.
It might be that a rails ML/chat is better suited for that kind of
discussion. It just depends on who is responsible for that code.
Somehow I am too stupid to find that out, so please bare with me if I
produced only noise here.
Cheers
2011 Dec 02
1
How to implement ActionMailer callbacks for rails3?
Hi,
Is it possible to implement callbacks(like
before_deliver :some_methodes, after_deliver :other_methods) with
ActionMailer in Rails3?
Please somebody help me or give me an idea :)
Already I saw http://railscasts.com/episodes/206-action-mailer-in-rails-3
but it I like to do it as callbacks
--
Best Regards
Abdul Barek
Senior Software Engineer
--
You received this message because you are
2010 Aug 22
1
rails3: t.index in migrations not working anymore
Hello,
I''m playing around with Rails3 and trying to upgrade one of my
applications to Rails 3.0.0.rc and I get an error which should be still
working.
Migration:
t.index :name
When I execute rake:
rake aborted!
An error has occurred, all later migrations canceled:
undefined method `index'' for
#<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0>
Does some one
2011 Jan 12
1
gem and rails3: LoadError
Hi everybody,
I''m trying to use the prawn gem into a new rails3 application on debian.
What I did:
As root:
- install rubygems, from
http://rubyforge.org/frs/download.php/73882/rubygems-1.4.2.tgz
- gem install rails
- gem install prawn
- gem install pdf-reader
- gem list | grep prawn =>
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)