Displaying 20 results from an estimated 10000 matches similar to: "url_for - results inconsistency ??"
2015 Apr 30
2
búsqueda y sustitución masiva
Hola a tod en s, explico lo que estoy intentando hacer...
Tengo un listado de url comprimidas de twitter, entre las cuales hay muchas
repetidas, por lo que el número de registros llega a más de 15K.
Por otro lado tengo otra lista de esas url únicas con su equivalente ya
descomprimido llegando a un registro de 900.
El problema que tengo es que estoy intentando hacer un loop para hacer la
2005 Nov 24
0
Request rewriting - regular expressions
OK not directly CentOS this one but....
I'm trying to write a rewrite rule that uses the same(tm) syntax as
apache mod_rewrite (or at least it understands it) The following works
by catching ANY url comfigured in the web server and rewriting it with
the correct http status code. The issue is that i need to redirest URL1
to 1st location and URL2 to second location and i'm trying to get
2005 May 15
0
Multiple Questions -- Please Help
Hi All,
I'd like to setup asterisk for a small call center. I need basic
functionality for a small call center, including but not limited to:
1) Multiple queues with different rules for each (e.g. some queues,
people may leave messages in, others people will just have to wait
until the call is answered)
2) Call monitoring (all call - inbound/outbound - must be recorded)
3) Agent Barge
2010 Jul 21
1
Command that is conditional upon file retrieval: is it possible?
Hi all,
I'm currently working on an R program where I have to access an FTP server
to download some of the data I need. However, the people who post up the
files I access are at times inconsistent with regards to time posted, if
they post at all, etc.... Here's some of the code I use:
library(RCurl)
url1 = paste("ftp://user:password at a.great.website.com/",
2006 Sep 22
1
url_for params
Hi,
url_for has a nice way of using the current ''params'' object to fill in default
parameters in a route. For example,
map.connect '':controller/:action/:id/''
with <%= url_for :action => ''my_action'' %> will redirect to the current
controller. All very good.
However, I sometimes want a url_for() which includes current parameters
2006 Jun 19
0
url_for missing out parameters?
Having a bit of an issue with url_for
The current page I''m on has a named route as follows:
map.some_page ''page/:id/:range'', :action => ''the_action''
All looks fairly normal. I have an url_for on this page to make a link
to another page as so:
url_for(:controller=>''other'', :action=>''display'', :id=>5,
2008 Apr 05
0
url_for + :canvas => false weirdness for non resource controllers
I noticed something strange in my app today. It appears that the
extra canvas path appended in url_for is back but only for
controllers that are not resources. Here is an example I have in my
site:
campaigns is a resource
checkout is not
# With the canvas false flag
(rdb:1) @controller.url_for(:controller => ''campaigns'', :action =>
''show'', :id
2006 Oct 22
2
url_for In a Component?
When I try to use url_for within a component I get the following:
NoMethodError in LinkController#get_links
undefined method `url_for'' for Navbar::LinkController:Class
The API docs show url_for as a public method of ActionController::Base.
Since my component is derived from ActionController::Base shouldn''t
url_for be available within the class?
Any ideas?
Thanks!
-
2007 May 11
1
url_for and capitalization..
i am having a very weird problem with url_for..
i have been using this for several version of rails, but recently, i had
a problem..
it seems as though url_for is causing the results to be returned in
lower case..
if there are uppercase letters in the arguments, they result is all
lower case. obviously, this is a problem as the urls don''t work anymore.
the other oddity is that when i
2005 Mar 06
2
Using url_for in ActionMailer templates
Hi All
I am just adding some basic e-mail notices to my Rails app using
ActionMailer, and have one small issue. I want to provide a
confirmation URL to users who sign up for an account. I can obviously
just hardcode the URL and append the confirmation code to it, but I''d
much rather be able to use something like:
url_for(:controller => ''authentication'', :action
2006 Jan 12
3
url_for in tests
Hi there,
I''ve added an extra bunch of testing features for doing in-browser
testing with Selenium, and am having quite a time figuring out how to
use url_for with having a controller object present. I''ve tried using
ActionController::Base.url_for and
ActionView::Helpers::UrlHelper.url_for but haven''t been able to get
something that works.
What I want to be able
2008 Sep 17
1
url_for not working in model
Hi,
I am using ''url_for'' for constructing url in my model but it gives me
error
<NoMethodError: undefined method `url_for'' for Xyz:Class>
how to access url_for in model and it possible to call controller
method in
model and how to call it?
Please urgently give reply?
--
Posted via http://www.ruby-forum.com/.
2007 Mar 19
2
Controller url_for modifies request object?
Hi,
In my controller, I do something like this:
MyMailer.deliver_signup_notification(url_for(:subdomain =>
account.subdomain, :controller => ''hello''))
And a few lines later:
redirect_to :action => ''index''
Much to my confusion, the redirect routes me to the subdomain used in
the url_for. I''ve tried
redirect_to :action =>
2006 Jul 31
0
problems testing helpers - link_to and url_for don''t work...
So I''ve used the helper test plugin, and also tried some things from
Rails Recipes, and basically neither seems to work for cases where a
helper does anything related to link_to/url_for, and this includes
calling named_routes. This is obviously an issue, as a common use for
helpers is to refactoring something like this:
<%= link_to "text that changes slightly", :id => id
2006 Feb 08
0
How to call a basic function ( like url_for ) from a class inside the /lib folder ?
Hello,
I try to use url_for from a class inside the lib folder
class Test
def self.mytest options
url = url_for( options )
end
end
But I have this error :
undefined method `url_for'' for Test:Class
How can I use it ?
Thanks
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2009 Jan 12
0
url_for, routes, and the current url
I need to generate 2 types of URL and have defined my routes as:
map.country_yes
"/:country/
yes", :controller=>"posts", :action=>"country", :yes=>true
map.country_no
"/:country/
no", :controller=>"posts", :action=>"country", :yes=>false
map.yes "/yes", :controller=>"posts",
2008 May 16
0
Problem with :action => 'destroy' in url_for
url_for( :controller => ''foo'', :action => ''destroy'', :id => 1 ) => ''/
foo/1''
url_for( :controller => ''foo'', :action => ''destroy_x'', :id => 1 ) => ''/
foo/destroy_x/1
url_for( :controller => ''foo'', :action => ''destroy'', :foo_id => 1 )
2006 Sep 07
5
url_for always escape string.
according to the documentation, only the url_for from ActionView escape
the
URL.
which happens on this line
escape ? html_escape(url) : url
and can be prevented by passing :escape =>
false to url_for.
still according to the documentation, the url_for from ActionController
is not supposed to escape the url.
BUT IT DOES.
at the moment of this line
escape ? html_escape(url) : url
url has
2019 Feb 01
2
group membership inconsistency on AD domain member
Hi,
I've been running a samba server with winbind (CentOS 7) as a member of
an AD Domain (Windows 2012 R2) for several months without a problem.
"Suddenly" I'm seeing the problem that the membership in newly created
AD groups isn't correctly visible for some users on the samba server or
only after some indefinite amount of time. I'm looking simply at the
output of
2006 Apr 17
1
problem with reverse mapping (url_for problem)
I modified my routes to that you can reach my index action by just
typing in the site name (ie www.mysite.com). I did this by:
map.connect '''', :controller => "pragmatic"
I need to be able to do a url_for(:controller => ''pragmatic'') or
url_for(:controller => ''pragmatic'', :action => ''index'') and have