similar to: problems with themes in rails 1.2.1 -> named_route

Displaying 20 results from an estimated 200 matches similar to: "problems with themes in rails 1.2.1 -> named_route"

2007 Mar 06
4
Rails 1.2 / Theme support plugin issue: Fix
This is to answer one of my old issues, that I was having using Theme support plugin using with Rails 1.2. When you get an latest edge Rails update and run your application which has Theme support plugin you will get following error /script/../config/../vendor/plugins/theme_support/lib/patches/routeset_ex.rb:26:in `create_theme_routes'': undefined method `named_route'' for
2006 Aug 03
1
routeset mapper problem
hello, I installed a rails app on dreamhost, which I''m building based on the Comatose plugin, and it went smoothly for the first version. Now I uploaded a second version where I broke down the Comatose code into a regular rails app, which works alright locally, but can''t get routing to work the same as before on the server. I believe I double-checked all gotchas mentioned
2006 Aug 09
0
recent changes in routes
I''m writing a plugin that automatically creates a named route buy hijacking RouteSet''s draw method. This no longer seems to work in edge rails. Anyone know what changes in routes effected this and what the preferred way would be now to automatically include route? Here''s the code that used to work: class ActionController::Routing::RouteSet alias_method
2006 Feb 08
2
Adding routes via a plugin...
I have a plugin that I am working on that will as part of its distribution contain a controller. I would like to be able to add a route for it in the plugin''s init.rb so that when the plugin is loaded, the route will automatically be registered without having to force the user to edit routes.rb or even make a rake task to do it for them. I saw the following code in one of the SVN
2007 Apr 23
0
is theme_support the only theme plugin in rails?
Hi: I am just wondering if theme_support is the only themes enabler plugin in rails? I have a feeling there is more but i can''t seems to find it by searching .. Any help? Regards --~--~---------~--~----~------------~-------~--~----~ 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
2006 May 25
1
AppMailer and McCray''s theme generator
Hi, I am using Matt McCray''s theme generator. http://rubyforge.org/projects/theme-generator/ Everything works fine, but rendering an action in a controller using the AppMailer raises this: undefined method `current_theme'' for #<AppMailer:0x39df950> Is there someone who could help me ? Thanks ! Mickael. Traces:
2007 Jan 17
8
Mocha Mock''s hanging on after test run?
Hi guys, I''m running mocha (0.3.2) against Rails core and just found an issue where the mock doesn''t go away after the test is run. For example: def test_reset_bang_doesn_reinstall_named_routes ActionController::Routing::Routes.named_routes.expects(:install).never @session.reset! end def test_zzz puts ActionController::Routing::Routes.named_routes.inspect
2006 Aug 15
0
Plugin routes with edge?
Can anyone tell me what would be the preferred way to automatically include routes from your plugin? I''ve previously used a method based on the theme_support plugin by Matt McCray, but that method seems to no longer work with edge rails due to the routing changes. Any ideas? Thanks.
2006 Apr 23
1
Can''t override routing code
I want to change some of Rails'' routing code so that I can make routes subdomain-sensitive. The code at http://wiki.rubyonrails.com/rails/pages/RoutingSubdomains works fine when I edit the file (in my case, C:\Program\Ruby\lib\ruby\gems\1.8\gems\actionpack-1.12.1\lib\action_controller\routing.rb) directly. Changing that file seems very fragile, so I figured I would override the
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my products_controller: require File.dirname(__FILE__) + ''/../test_helper'' require ''products_controller'' # Re-raise errors caught by the controller. class ProductsController def rescue_action(e) raise e end end class ProductsControllerTest < Test::Unit::TestCase fixtures
2012 Sep 04
0
dynamic route generation
In polymorphic_routes.rb, line 131, a name route that has been built (e.g. post_users_path) gets invoked on self (assuming there was not RoutesProxy instance appended as the first element of the array passed as the first argument to form_for, then send() would be invoked on self, which is PolymorphicRoutes module, which belongs to ActionDispatch::Routing): (proxy || self).send(named_route, *args)
2012 May 11
14
What is the point of using :format in routes?
Today I had a strange behavior that made me suspect of jQuery at first, but then it happened that I''ve faced two gotchas, one from CoffeeScript and one from Rails itself. I have something like this: routes.rb post ''/fields/:id.:format'' => ''fields#show'', as: :field, constraints: {id: /\d+/} post ''/fields/remove/:id''
2008 Jul 23
0
undefined method `first' for :users:Symbol
Hello, I am trying to move an existing fully functional Rails application from my laptop (Running Leopard) to my Desktop (Running Debian). I created a new Rails application on the Debian desktop and installed the restful_authentication plugin. I also changed the routes.db file to include maps for users and sessions. Now, when I try to start the WeBrick server, I get the following error: =>
2006 Mar 10
0
WEBrick crashing
ruby 1.8.2 (2004-12-25) [i386-mswin32] latest version of edge rails - patched to make the server work with win32 (http://dev.rubyonrails.org/ticket/4139) On some pages WEBrick is crashing with the following: d:/programming/ruby/lib/ruby/1.8/profiler.rb:27: You have a nil object when you didn''t expect it! (NoMethodError) You might have expected an instance of Array. The error occured
2011 Jun 21
0
Status of Rails.application.routes.recognize_path()
This might be more a question for the guys in the "Ruby on Rails: Core" group, but I''ll try it out here first... So, while writing a gem (engine) for rails, I found that I needed to have my app (in a pre-filter) directly query the router. In the "old" days, this was done using ActionController::Routing::Routes.recognize_path(). My 2nd edition of "Agile Web
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
Hi, I just encountered a bit of an issue where we call request.params of an ActionDispatch::Request inside a rack middleware right before a Rails 3.0.3 app. The issue is that the path_parameters never appear in the parameters hash if you call request.params before the rails app. It seems that that the requests.params method memoizes itself in "action_dispatch.request.parameters"
2011 Jun 22
3
Status of Rails.application.routes.recognize_path()
Sorry if this question isn''t really "Ruby on Rails: Core" material. I feel it is, at least kind-of (also, I first tried asking in "Ruby on Rails: Talk" to no avail.). So, while writing a gem (engine) for rails, I found that I needed to have my app (in a pre-filter) directly query the router. In the "old" days, this was done using
2007 Jun 02
2
Server-side Image Maps in Rails
I''ve been working on an idea to use a server-side image map to allow users to click anywhere in an area and have a new element appear at the location they clicked. Everything was going well, until it came time to connect the routing map. Here are the relevant parts: In the view, the map is created by -- <%= link_to(image_tag(''floor_plan.png'', :width =>
2010 Jan 28
0
qplot themes
Hi, I'm having trouble editing the qplot layout. I'm using the geom="tile" option and I want to do a few things: 1. move the vertical and horizontal gridlines so that they appear on the edge of each tile (right now they're in the middle) 2. bring the gridlines to the foreground and change their color I've been playing around with the opts(...) options but so far
2009 May 21
0
Couldn't recognize the image file format for file /usr/share/gdm/themes/Default/background.png error
Hello All, I am getting the following error on re-booting my CentOS 4.5 server: "There was an error loading the theme *Default*" "Couldn't recognize the image file format for file '/*usr*/*share*/*gdm*/*themes*/*Default*/*background*.*png*'" It appears that when I click on the OK dialog the server continues to boot, with no update to the screen. I have in the