similar to: 1.1.4: link_to with mixed case controller names "broken"?

Displaying 20 results from an estimated 7000 matches similar to: "1.1.4: link_to with mixed case controller names "broken"?"

2006 Mar 27
3
regular expression matching in routes.rb
All, I have a route specified as: map.connect '':folder/:filename'', :folder => /htmlfiles/, :controller => "eSimply", :action => "preview_HTML" I expect it to invoke the "preview_HTML" action in the "eSimply" controller. Given an argument of "htmlfiles/xyz.html", it keeps saying that it can''t find an
2006 Apr 26
2
Routing to a static HTML file under RAILS_ROOT
I have a regular plain old static HTML file under my RAILS_ROOT that I would like to serve as itself (without any dynamic anything). How can I write a route to "pass the request through" succesfully. I tried map.connect ''path_to_file'', :controller => nil, :action => nil, :id => nil but that didn''t work. Also, note that I have this route
2006 Jul 03
2
Routing acting strangely - mixed case controller names fail?
All, I have a link that used to work but now generates a routing error. The link URL is a straightforward controller/action/id and of course, I have map.connect '':controller/:action/:id'' in my routes.rb file. When I click on this link, I get a routing error. What''s potentially interesting about this URL is that the controller name is mixed case. Class is
2006 May 09
1
Session mgmt. bug - ActiveRecord & MemoryStore session store
Windows XP Pro Rails 1.1.2 I need some help verifying this behavior that I''m seeing. BUG: Objects in session which are descendants of ActiveRecord::Base lose attributes on subsequent requests when using CGI::Session::MemoryStore. TO REPRODUCE: 0) Set up MemoryStore as the session database manager in the appropriate environment.rb file in config 1) Create a model object X that
2017 Jul 04
2
Broken links
Akemi, Should you please also create an account for me as well for my contribution? FirstLast --> XlordX Xlord -----Original Message----- From: CentOS-docs [mailto:centos-docs-bounces at centos.org] On Behalf Of Akemi Yagi Sent: Wednesday, June 28, 2017 11:16 PM To: Mail list for wiki articles <centos-docs at centos.org> Subject: Re: [CentOS-docs] Broken links On Wed, Jun 28, 2017 at
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2007 Oct 03
2
Providing HTML in an error message generated by validation
All, I have some validation that I''m doing in a model. As part of the error message, I would like to provide an HTML link. What is the best approach to handling this? APPROACH 1: One way is to include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper in my model so that I can use link_to to generate my link (obv. I could hard code HTML as well). But anyway that
2017 Jun 28
2
Broken links
<!DOCTYPE html> <html><head> <meta charset="UTF-8"> </head><body><p><br></p><blockquote><p>On June 27, 2017 at 10:33 PM Akemi Yagi <amyagi@gmail.com> wrote:</p><p>On Tue, Jun 27, 2017 at 5:26 PM, Paul Claessen <paul@claessen.com> wrote:<br>></p><blockquote><p>On Tue,
2006 Mar 17
10
breadcrumbs?
Before I start down this road, has anyone done a breadcrumbs implementation they''d be happy to share? Thanks Chris T
2019 Feb 21
2
Weird things in the mail queue
I noticed a mail stuck in my mail queue. dovecot-lda was returning error 64 Invalid parameter given. (EX_USAGE). Weird, weird, weird. After some sleuthing, I found the sender address was FirstLast at domain.tld, with a UTF8-encoded Unicode U+FEFF ZERO WIDTH NO-BREAK SPACE character (AKA byte order mark) between "First" and "Last" :) Since that is passed as the -f parameter to
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All, Thanks for any help in advance. I have what I think is a very straightforward partial template and I can''t figure out why a text_field call within it doesn''t work. Here is my calling template: lists.rhtml <div id="target_lists"> <%= render(:partial => "target_lists", :collection => @target_lists) %> </div> In the partial
2006 May 30
5
Implementing HTTPS with WEBrick?
All, I would like to test some secure pages that I''m developing in my WEBrick-based development environment. I''ve done some research and it appears that I need to create a new command that will start a HTTPS based WEBrick server. Is this correct? Also, it appears that the https.rb module is not included with the WEBrick bundled in Rails. So, I will need to go get that
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All, I have a left navigation partial that I want to dynamically generate CSS classes for based on the current controller action. In my ERb template, I have <DIV class="<%= get_menu_display_style(''login_form'') %>"> In application.rb, I have the method get_menu_display_style defined as: public def get_menu_display_style(action_requested)
2006 Jul 13
5
Generic page element display initializer in a layout?
All, I''ve run into a snag. I need to handle the display of elements on my page and I want to use my Javascript event handlers on page load. However, my BODY tag is trapped in my generic layout. I''m thinking that I can put an onLoad on the BODY tag that will just call a Javascript method called initializePage() and then provide this initializePage() call in my specific page
2006 Mar 22
6
Relatively easy HTML/XML parsing utilities?
Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Mar 20
5
Wrap error_messages_for() call when no instance var present
I am trying to put some smarts around a call to <%= error_messages_for %> so that when I first come into this page i.e. when my instance variable @target_list has not been defined yet, the page doesn''t break. I''m doing this: <% if @target_list? %> <%= error_messages_for ''target_list'' %> <% end %> I get a syntax error on line 1.
2006 Jul 10
8
Setup new data in the test database _after_ unit test runs
All, I want to run automated unit tests as part of my build. I am building to my test environment. Upon successful completion of all of my unit tests, I would then like to load some data (using a fixture, I imagine) into my test database that will act as fresh "system test" data for my users to play with. What is the best way to "load the standard system test/user acceptance
2021 Jul 13
2
Wiki request
On Tue, Jul 13, 2021 at 9:03 AM Jeffrey Osier-Mixon <jefro at redhat.com> wrote: > > Thanks - it appears that I log in as "jefro". I can change this to FirstLast if that is preferred. > > Jeffrey "Jefro" Osier-Mixon | jefro at redhat.com > Red Hat Office of the CTO | Sr. Principal Community Architect, Automotive Please do. CamelCase has a special
2021 Jul 13
1
Wiki request
I have changed to: JefroOsierMixon but for some reason it won't save. The settings page just spins after I click Save. Hopefully it will complete at some point - I will keep checking back. thanks Jeffrey "Jefro" Osier-Mixon | jefro at redhat.com Red Hat Office of the CTO | Sr. Principal Community Architect, Automotive On Tue, Jul 13, 2021 at 9:11 AM Akemi Yagi <amyagi at
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb? So, for example, you could control authentication for all of the controllers in an app.? Obviously, you would need a way to reference actions by controller within this "global before-filter". Thanks, Wes -- Posted via http://www.ruby-forum.com/.