similar to: asset host and link_to

Displaying 20 results from an estimated 40000 matches similar to: "asset host and link_to"

2005 Jul 17
0
RE: link_to and CSS
What you want is a.linkCommand:hover, etc -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Shelby Westman Sent: Monday, 18 July 2005 2:20 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: [Rails] link_to and CSS I am a bit confused about how
2005 Jul 16
2
Applying css style to a link_to
What is the proper syntax to apply a css class to a link created using link_to? I''ve tried <%= link_to("details", :class => "details", :action => "edit", :id => event) %> but that creates a link which looks like /admin/events/edit/3?class=details which is not what I''m looking for. Kyle Heon
2005 Nov 13
2
Link_to :protocol and :host?
Hello, I am trying to set the protocol and host in link_to based on the documentation. I have the following: <%= link_to "View Cart", {:controller => ''store'', :action => ''view_cart'', :protocol => ''https://'', :host => ''secure.host.com''} %> I would expect this to generate a https link to another
2005 Sep 01
1
RE: share eclipse-templates library (was: RE: Software to codeRails)
Tobias: Thanks for the feedback. You are correct, it should be "ALL HTML" (I originally had people adding the snippet to the HTML section but it didn''t always work so I moved it to the JSP templates... And I guess I forgot to edit everything in the doc. I will definitely add your comment about the cursor location! That''s great! -----Original Message----- From:
2014 Apr 26
0
jquery_ujs.js 404
I am getting this annoying error which relates to jquery_ujs.js not being served. Any clues? This is the site link: http://test.kopy.com.br/home/index GET http://test.kopy.com.br/assets/jquery_ujs.js?body=1 404 (Not Found) index:11 GET http://ads.panoramtech.net/loader.js?client=tac net::ERR_BLOCKED_BY_CLIENT rev.js:4 Error in event handler for (unknown): Cannot read property 'state' of
2005 Dec 02
3
Conceptual Design Question
Hi All, I am making a DAM (seems to be the hip thing to do these days). It is for the company that I work for. We have some really weird domain rules that have prevented me from just using a simple directory structure file permission system. I have come up with a solution but I wanted to run it by you gurus to ensure that I am not recompiling the wheel here. Basically the domain rule is: A user
2012 Jul 27
0
How to get asset pipeline host url in Grape Api
Hi All how can i get the asset pipeline host url in grape api to append to the image url in config/environments/development.rb ActionController::Base.asset_host = "assets.example.com" i have configured the asset url. How can i generate this image with asset host url in grape api -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Jan 21
1
Set asset host port in a way similar to what application does
Concerning http://stackoverflow.com/questions/13266603/rails-how-to-set-port-number-for-the-asset-hosts-in-development I''m setting the full asset hosts in the environment files, being the one in development http://localhost:3000 . But let''s say I restart the application on port 3001. Assets won''t be fetched, and I have to change it accordingly all the time in the
2005 Dec 15
6
passing parameters to link_to OR better way to do this?
Hi All: I''m writing my 1st Rails app and I can''t seem to find the answer on the web or in the book. I''m making a table, and I want to be able to expand a filename. The code is basically as as follows below. In the last <td> entry, I want to call an action and pass in the test_results_path, which I will go and read a file and munge the data for a separate
2011 Sep 12
0
How to get the image_path in production without the asset host?
Hi guys, I would like to know how to get the image_path in production environment without the asset host (using rails 3.1). There is the image_path helper that returns the image path with md5 and (if set, and it is set) the asset host, but we have not found a way to get the path without the host. Does anyone know how to do that? Bruno Grasselli Blog: http://brunograsselli.com.br Twitter:
2012 Mar 15
0
Make Asset Pipeline compatible with Chrome DevTools Autosave
https://github.com/NV/chrome-devtools-autosave doesn’t play nice with Asset Pipeline. https://github.com/NV/chrome-devtools-autosave/issues/27 The culprit of the problem is in the asset’s URLs. I cannot decipher a file path by its URL. For instance, /assets/main.css?body=1 could be either app/assets/stylesheets/main.css, lib/assets/stylesheets/main.css or vendor/stylesheets/main.css. To fix
2008 Mar 13
3
Refreshing a page gives a "stack level too deep" error.
I''m converting our app into restful rails. A couple of my classes (Resource and Asset) have a has_many relationship with each other - here''s the routes: map.resources :assets, :has_many=>[:resources] map.resources :resources, :has_many=>[:assets] I''m getting something weird in my view pages. When i go to /resources/4/assets it works. I go to the page
2005 Apr 10
1
Submitting form using link_to
I''ve got a form with a paginator and I''d like to save the contents of the form whenever the user moves to a different page. Since the form contents aren''t submitted when a link is clicked, I thought I''d just change the action of the form to the URL of the paginator link and then submit the form using form.submit(). The form submits but I keep getting a 404
2005 Jul 03
3
link_to in controller
Is there a way to use the "link_to" function in a controller?
2006 Feb 10
1
RE: sorting <a href..> with D&D follows the link(browser thinks I click)
Maybe don''t make anchor tags draggable? Or you could do something like change the href to point to ''#'' and move the actual href into your javascript, and only call it if they click without dragging. Still, I think making a clickable item draggable is begging for problems. > -----Original Message----- > From:
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
2006 Apr 20
0
link_to mapped urls
Hi all, I want my link_to links direct to my mapped urls, not the long ones with controllers and actions in them. What I have: in view: <%= link_to "random url", random_url %> routes.rb: map.random ''random'', :controller => ''start'', :action => ''random'' link_to results in "http://localhost:3001/start/random"
2011 Jul 19
0
asset host
I am setting up an asset host on another server http://golf.myassets.com how should I organize the folders in this host ? should I copy the public folder of my Rails app ? or only the images ? or image s+ javascript + stylesheets ? I did not find any information in the doc about it ? thanks for your lights -- You received this message because you are subscribed to the Google Groups
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
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