Displaying 20 results from an estimated 50000 matches similar to: "Routes with parameters ordered differently"
2007 Jan 31
1
help please!
Hi,
I''ll appreciate insight on this one... it''s causing me some pain on my
production env.
<%= link_to "something",
:controller => "somecontroller",
:action => ''someaction'',
:id => someid,
:favorite => is_a_favorite %>
I added a boolean :favorite to the URL arguments.
THis has always worked well under my dev
2006 Mar 18
2
Additional link tag attributes with link_to_function...
Hi,
I''m having a bit of a struggle with link_to_remote. Everything works
exactly as I want it, but the problem is that I want to add another
attribute to the <a>-tag, namely class="". Long story short, I want
specific links to look differently from others, but all of them being
link_to_function. Normally, I''d do this with adding a class="foo" to
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/
125392) and after spending a while debugging through this, I still
don''t have a solution. Lets try again?
I have two controllers, SomeController and Admin::SomeController. When
SomeController is loaded first (which happens under spork, found out
by editing ActiveSupport::AbstractController) I get warning: toplevel
2006 Sep 29
0
permissions behave differently from different programs
Hi all,
I connect to a remote server using samba, and then try to modify a basic
text file. Oddly, I can only when using certain programs. The
file server is a Mac machine on which I have enabled "Windows sharing",
Mac's way of saying turn on Samba. Here are a few cases to explain the
problem:
1) I connect from my Mac laptop by going to finder and connecting to
2009 Apr 24
4
Undefined method "redirect_to" in before_filter
Code sample:
class SomeController < ApplicationController
before_filter do |c|
add_crumb "Blah", "/blah" #breadcrumbs plugin
redirect_to :controller => "foo", :action => "bar" unless c.send
(:has_package?)
end
# Rest of the controller...
private
def has_package?
# A bunch of logic work to check to make sure
# somebody''s session contains
2007 Jan 19
6
Problem w/ routes.rb
I am trying to develop a new webapp using Rails 1.2.1. I am installing
it onto a production web server running Apache w/ fastcgi. The server
already has some older webapps running on it using an older version of
Rails. The apps are not installed in the document root; they each have
their own subdirectory which is a symlink for the apache document root
to the "public" directory of each
2006 Apr 28
4
can someone help DRY a noob? thanks...
hi all
i''m trying to pass a variable name right round the block and need a hand
to ease my aching brain.
##in my sidebar i have
<li><%= SidebarItem(''catalogue'') %></li>
<li><%= SidebarItem(''provenance'') %></li>
<li><%= SidebarItem(''status'') %></li>
##linked to a
2007 Sep 22
0
How to DRY up controller action spec with different params.
I tend to write a fresh description block for every change in the parameters
for that specific action, because I hate conditionals in the example
describtion, e.g.:
describe SomeController, "handling GET /path/with/param/3" do
it "should do this"
it "should not do this if"
it "should still do that in both cases"
end
Seperate description blocks keep
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi,
I''ve done AJAX calls to Rails'' Controllers before yet never required to
generate a response back to the view. In this respect, I have tried to
keep it moronically simple and just add a node to see that it works, yet
the response doesn''t come through / isn''t interpreted as it should. Long
story short, code :
// Have to use Mootools to integrate a
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
Working on Rails Engine.
I want to make the controllers customizable whereever the Rails Engine is
used.
Therefore, I was trying to use `extend ActiveSupport::Concern` on the
Engine controller class and include it in MyRailsApp.
https://gist.github.com/4185823
# code in my rails engine
moduel MyEngine
class SomeController
extend ActiveSupport::Concern
def engine_some_method
2010 Mar 31
0
Rails3 parameters in routes
In Rails 2 I was able to specify extra parameters within a route, like
this:
map.login "login", :controller => "user_sessions", :action => "new",
:tag_index => true
The tag_index would be available in the controller via
params[:tag_index].
I''ve searched to find a simular solution within Rails 3, but I''m still
unable to find it. Does anybody
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in
`method_
missing'': undefined method `describe'' for main:Object (NoMethodError)
from ./sandbox_controller_spec.rb:7
from
2015 Dec 17
0
Network services start before network is up since migrating to 7.2
On 17 December 2015 at 11:12, Sylvain CANOINE <sylvain.canoine at tv5monde.org>
wrote:
> Hello all,
>
> I updated two of my servers to CentOS 7.2 (1511) two days ago, and since,
> on one of them, the network services are started (and fail to start) before
> the network interfaces are online.
>
> Parts of "journalctl" after the last reboot :
>
> d?c. 17
2007 Mar 13
1
BUG? re-ordering of tos routes in table
It seems like tos should be considered when sorting routes on insertion.
Consider this out-of-order route creation:
# ip route add 1.1.0.0/24 table 3 nexthop via 192.168.0.23
# ip route add 1.1.0.1/32 table 3 nexthop via 192.168.0.24
# ip route show table 3
1.1.0.1 via 192.168.0.24 dev eth3
1.1.0.0/24 via 192.168.0.23 dev eth3
ok... it''s re-ordered the routes - it makes sense, the
2003 Jun 18
1
Extra parameters in SIP URIs
Hello,
I've seen that Nuance SIP audio provider supports additional information
(parameters and extra headers) in SIP URIs, using the format:
sip:user:password@host:port;uri-param1;uri-param2?header1&header2
For example,
sip:1234@myserver.com;extra_header=Uui?Uui=Hello
Does Asterisk support this format?
Is there a way to retrieve the value of these additional headers, and then
decide
2008 Mar 31
6
DoveCot IMAP and "inconsistent state" messages
I need some help troubleshooting this problem. It only shows up with
IMAP connections. I initially thought it was related to SquirrelMail
(because it gives me an 'EXPUNGE' error), but after attempting to send
IMAP commands directly to the server as shown below, I'm thinking there
is something else going on.
The system configuration is PostFix as the MTA delivering to procmail in
2007 Jan 18
2
How to use API from AWS -- help!
I''m building a users web service (direct dispatching) that will (I hope)
allow several other applications to manage the same pool of users. Plus
it will act as a single-sign-on solution for what I''m doing. But I''m
having difficulty accessing the UserAPI. Here''s what I''ve done so far:
$> rails usermanagement
- "usermanagement" is the
2007 Mar 12
1
Can't follow redirects outside current controller - but it's the same controller
Running a functional test on FooController that does
''follow_redirect'', I get ''Can''t follow redirects outside current
controller (from "foo" to "foo"). On further investigation, it turns
out that :foo != ''foo'' around line 401 of actionpack/lib/
action_controller/test_process.rb. Changing the line:
if redirected_controller
2024 Oct 12
1
AD/DNS: Cannot Create a CNAME record with a blank name...
On 12-10-2024 17:15, John R. Graham via samba wrote:
>
> On 10/12/24 05:15, Kees van Vloten via samba wrote:
>>
>> On 12-10-2024 02:25, John R. Graham via samba wrote:
>>> ...as recommended on the Samba Wiki here:
>>> https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ#I_have_to_Use_Different_Names_to_Resolve_Host_Names_Internally_and_Externally
2007 Feb 14
6
various ordering issues in puppet manifests
Hello,
The more complicated my puppet scripts gets, the more ordering issue i meet. Here is a simple thing:
I use a default backup policy for the nodes in my backup classe and then, in the node i try to override the defined
default but even if they are done one after the other i got an error to say that the override is triggered before the
default:
include backup