similar to: link_to mapped urls

Displaying 20 results from an estimated 10000 matches similar to: "link_to mapped urls"

2006 Apr 13
0
redirect_to or link_to mapped url. any other way than "../../smth"?
Hi all, I''ve got my urls mapped so that http://myapp/url is the same as http://myapp/start/show/url. Is there any way to use "redirect_to" and "link_to" in this case? Currently I just use redirect_to("../@url") but perhaps there''s some way to make it properly, with :action etc. sabon -------------- next part -------------- An HTML attachment was
2006 Apr 12
6
distinguishing mapped urls from ordinary action urls
I want to present different view depending on the url. example below: http://myapp/start/show?url=xZq http://myapp/xZq both addresses are controlled by a single controller and the same action. the second url is only mapped in routes.rb how can I distinguished the mapped url and present a slightly different view in it? Sabon -------------- next part -------------- An HTML attachment was
2006 Apr 13
0
keep getting undefined method `rewrite'' error for mapped urls
Hi all, I''ve checked numerous manuals but can''t find the answer anyway. in my routes.rb file I have a mapping which maps http://app/start/show/url to http://app/url everything works fine BUT: - when I want to use link_to, redirect_to (smth) - when I try to even enter <%= form_tag :action => ''some_other_action_from_the same_controller'' %> I keep
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
2005 Oct 15
0
Making link_to use the routes I define
Hi, In my rails application I have a controller (message) that handles all top-level directory requests, and maps it to a list view. How can I use link_to to link to the URLs generated by this route? map.connect '':forum_url_name/'', :controller => ''messages'', :action => ''list'' Then I have a (forum) controller that lists all its
2006 Aug 01
2
restful controllers - howto nest with link_to?
Hi List, I''m trying to get my grip on the restful methods that are now part of edge rails. Making the first steps was impressive as well as easy because there are already great resources on the blogs of early adopters: http://www.ryandaigle.com/articles/2006/08/01/whats-new-in-edge-rails-simply-restful-support-and-how-to-use-itand
2006 Jun 14
1
Absolute URL from link_to?
What options do I need to provide to link_to so that it generates truly absolute URLs (i.e. including protocol://host:port/path)? It seems that even when I provide :host and :protocol arguments to url_for that it suppresses these when they match the current request.
2006 May 02
6
Is there a link_to ''external url''?
I''ve checked the Rails documentation but find no mention of link_to ''external url'' or equivalent. Does rails have a built in method to do this? thanks -Lindsay -- Posted via http://www.ruby-forum.com/.
2009 Sep 21
1
Keeping format in link_to
Hello, if a action/id.something is called with the link_to urls don''t keep the format ? I mean the link_to calls inside the view don''t maintain the .something and generate unformatted links How can I do to keep the format ? -- Posted via http://www.ruby-forum.com/.
2006 Mar 14
2
How to not display :id in link_to URL
Hello all. I have a page which has a form on it. the page''s URL is http://127.0.0.1:3000/Component/history and The form action is: <%= start_form_tag :action => :history %> <%= text_field_tag ''id'', "#{session[:component_criteria]}" || nil, :class => ''mandatory'' %><br /> <%= submit_tag "Search", :class
2013 Mar 15
5
link_to should have its body and url arguments reversed
I think the link_to helper method is quite confusing with its arguments order: link_to body, url link_to "Click me", @person Why is it thay way round? I want to make a "link to [the] person", so I would expect the order to be: link_to @person, "Click me" It reads much more natural. You don''t "link to [the] body", you "link to
2007 Aug 03
0
character encoding, MySQL, link_to
So, man, character encoding is confusing. Worse, I''m talking to a vendor-supplied database (read-only) that I did not add the data too. At least this vendor-supplied database is MySQL. So this database has some accented charactars in it. For instance, something as simple as a lowercase o with an acute accent, for example. At first, this character was not being displayed correctly in my
2006 Jun 10
2
How can I link/anchor down the page with #anchor in urls?
I''m trying to expand on a blog tutorial and one thing I can''t figure out is how to use anchors within pages. For example say I have sections on a page with anchors like <a name=section1"</a> through <a name=section6"</a>. Using older non-rails methods I would construct urls that contains the pound symbol and anchor name in the url such as
2006 Jan 18
2
How do you get link_to to work correctly when using subdomains as account keys?
When using subdomains as account keys (as per this HowTo: http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys), how can you get link_to to spit out the correct URL (i.e. account123.domain.com)? <%= link_to "My Account", { :action => "show", :id => "account123" } %> would generate "http://www.domain.com/show/account123" I
2005 Dec 29
0
asset host and link_to
i've defined an asset host for my Rails app and all files uploaded through it are accessed via the asset host. How should i access the config object in order to generate correct urls for these files using link_to? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2007 Aug 27
2
issue with edge rails and urls
I just switched our project over to Edge Rails, and I''m running into this problem with all of my helper methods that call _url methods: NoMethodError in ''ApplicationHelper home_link should generate a valid home link when User.current and Profile.current is not set'' You have a nil object when you didn''t expect it! You might have expected an instance of
2005 Aug 08
1
url_for()/link_to() Broken under Webrick?
After successfully getting my "productized" sites into production, I decided it was time to get the development environment working (i.e. through "script/server --site=foo"). However, when I go to run a site under Webrick, I get two major errors: (0) Routes don''t seem to work properly, specifically the root-level route gets ignored. Instead,
2008 Feb 29
3
How to DRY REST admin path in URLs?
Hi everyone... For almost all of my objects I put a series of classic REST admin links in views. For example, for a ''user'', I have <%= link_to "Show", user_path(user) %> <%= link_to "Edit", edit_user_path(user) %> <%= link_to "Destroy", user_path(user), :confirm => "Are you sure", :method => :delete %> I am tired
2008 Oct 18
0
Link_to + PUT + restful routes problem
Hi, I''m trying to use link_to to access the Update action + add some extra parameters. I''m using the default rest routes. I can''t get it working. When I use: <%= link_to '' Accept'', invitation_path, :method => :put, :id => ''1'', :command => ''accept'' %> I can get into the Update action but the
2008 Feb 20
1
link_to weirdness, related to namespace?
Hi, In my app/views/admin/clieint/_searchresults.rhtml partial, I have ... <% for user in @users %> <tr> <td><%=h user.ship_to_first_name %></td> <td><%=h user.ship_to_last_name %></td> <td><%=h user.email %></td> <td align="center"><%= link_to ''Show'', {:action =>