similar to: [PATCH] Automatically set :only_path option to false when :host option is specified in url helpers

Displaying 20 results from an estimated 3000 matches similar to: "[PATCH] Automatically set :only_path option to false when :host option is specified in url helpers"

2007 Jan 11
3
Strange behaviour with Scriptaculous v 1.7.0 beta 2
Hello, I''m testing beta of scriptaculous and I''ve got a stange behaviour. I''m using this RJS : page << "$(''content'').morph({width:''308px''}, {duration:0.5});" page.replace_html ''subcontent'', :partial => ''sub'' page.replace_html ''nav_path'', nav_path
2007 Feb 27
0
Simply_helpful and nested resources
Hi all, my question is Does simply_helpful is ready for use with nested resources ? I''ve tried something like : # Routes.rb map.resources :projects do |projects| projects.resources :iterations end # edit.rhtml <% form_for(@project, @iteration) do |f| %> # => <form action="/projects/1/iterations/3;edit" method="post"> # new.html # =>
2007 Mar 15
2
simply_helpful's form_for not respecting default_url_options (only_path)
Looking over the discussions and Trac tickets am I correct in assuming that the simply_helpful''s form_for not respecting the default_url_options (specifically only_path) is a side-effect of some other default behavior choices? Personally, I set only_path to true as my default as I think except were you are dealing with https it makes life much easier (especially in testing) and is just
2006 Jan 03
18
Trying to do a simple thing ...
Hi ! I was talking to a seasider and he asked me if it was easy to do the following thing using rails : 1) ask a number to the user 2) ask a second number 3) give the addition of the two number and a link to be able to replay All these things have to be done in one controller and one action, there is no need for verification and other stuff. I tried but I''ve got some problems
2006 May 26
0
First official RoR french meeting
Hi all, a very cool info for all french readers of this list. RailsFrance (http://www.railsfrance.org) is organizing a Ruby On Rails meeting in France (Paris). It''s gonna take place during 2006 autumn. You should take a look at http://paris.onrails.info/ Bye. -- Nicolas Cavigneaux http://www.bounga.org -------------- next part -------------- A non-text attachment was scrubbed...
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
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
I generate a lot of URL''s in my Facebook related code that point to our main site, not our FB app. My understanding was that the way to do this was to use ":canvas => false" as a parameter to url_for and link_to and so on. However, that doesn''t seem to generate the proper URL''s. The URL''s still point to apps.facebook.com (because they
2005 May 11
5
Ruby on Rails Presentation to Agile Atlanta Group tonight...
Hi everyone, We had a really successful meeting tonight in Atlanta. The topic was an introduction to Ruby on Rails and our attendance was 30 people, which is over double of what we normally get. (Our attendance has dropped since moving the venue about 25 miles north of the city. The majority of the group stayed well past two hours, at which point we took a break. The entire presentation and
2009 Mar 19
0
How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0)
sub :How to change paypal url from sandbox to papal original url. i am using paypal lib -- paypal (2.0.0) Hi all, I am test my application with local it working fine when i want to go for live. i need to change the pay pal form target to Paypal orginal site address. I don''t know how to chage the form target in paypal helper. i paste my code below.. plz check it. I use paypal lib
2005 Dec 29
5
Ruby-GetText-Package-1.1.0
Hi, Ruby-GetText-Package-1.1.0 is now available. This release enhances many features for Ruby on Rails. I hope this release make your Application support L10n. And thanks for many helps! Highlights ---------- * Added some functions which managed po/mo files easily. * GetText.update_pofiles creates/updates pot/po files. The idea is from Sascha Ebach. * String% is extended to accept
2005 May 10
58
A quick straw poll
How many of you are using Rails: 1. As the primary development tool at your Day Job 2. As a small part of your Day Job 3. Not using Rails in your Day Job, but are using Ruby 4. For OS/outside work/hobby -- sam http://www.magpiebrain.com/
2006 Jun 01
5
Content Management System
I am looking for a good CMS based on Rails that has at least these attributes: 1. Ease of use ( as it will be used by people who are not html literate) 2. Very easy/flexible to change layout. So far I have looked at http://rcms.oopen.de/Home/ (have not installed it yet) http://adminpages.flowdev.de http://demo.radiantcms.org/admin/pages http://www.eribium.org/eribium/ MuraveyWeb does not seem
2006 Jun 28
2
Saving and reproducing a POST request.
Hi I have an action which saves the originating resource from which it was called, and returns to it later. This is done by setting: session[:return_to] = request.referer ... redirect_to(session[:return_to]) Which works great for GET resources. The problem is that POST variables aren''t kept in request.referer, so this method fails when the originating resource is a a POST.
2006 May 27
0
Typo 1055 created_at Vs. published_at
[Couldn''t post this to the Typo forum, hope it''s Ok here :-)] Before I go off and create a Typo ticket, I''d like to know if anyone else is experiencing this and what there thoughts might be on the subject? In Typo 1055, if you use the admin interface and change the published date for an article, you will get "post not found", when you click on the article
2006 Sep 08
2
rails equivalent to symfony admin generator?
I''m an experienced PHP programmer (don''t know Ruby yet), and I''m playing around with Symfony (PHP MVC framework similar to Rails) and I found myself asking if there''s really any reason to use it over Rails. From what I''ve seen just about every feature in Rails is superior except one very important thing - Symfony''s admin generator. This is
2007 Nov 14
3
absolute urls in url_for vs. link_to
In both url_for and link_to, the :only_path param can be used to determine whether the link url used is complete with hostname and path, or just has the path (a kind of relative url). However, in url_for it defaults to false (urls with hostnames), and in link_to it defaults to true ( urls without hostnames, just paths). Is there any reason for this discrepency? To me, it violates the principle
2010 Aug 09
0
Expanding tests with own methods
I want to call the method ''url_for'' in my functional test. e.g. assert_select "a[href=?]", url_for(:action => :new), :text => ''Neue Seite'' The book I am reading suggests doing this: class PagesControllerTest < ActionController::TestCase def setup def self.url_for(options, *parameters_for_method_reference) options.merge! :only_path
2006 Jul 08
0
Different URL generation in regular and named routes.
Obviously I am missed something, but why the way a path is generating using named routes is a little bit different from using regular url_for? 1. Parameters from current request did not affect named routes, the way it is in the url_for. 2. only_path=>false by default in named routes. It is true by default whe using *_path instead of *_url, by why not to set it true by default in *_url and
2006 Jun 09
2
Textile editor
Hello, Is there any editor for textile? Something which has buttons, and will auto insert textile code for marking user inputs. (If possible displays a preview also.) Thanks. -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | Great wits are sure to madness near allied, | And thin partitions do their bounds
2006 Apr 10
2
Fix log files
What is the code I include in one of my files so that my log files are easier to read? I am using Windows. Thanks. Seth -- Posted via http://www.ruby-forum.com/.