similar to: Accessing file in public directory

Displaying 20 results from an estimated 10000 matches similar to: "Accessing file in public directory"

2006 Apr 09
8
Computer Name
How to get the name of the computer accessing the application? I mean the computer the user use to access the application. Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
2006 Apr 08
2
Multiple submit buttons
Hi, How do i differentiate different submits tags / buttons on one form. Say I want to create an edit form and I want to provide two buttons; one to save and one to cancel. I would have: <%= submit_tag ''Ok'' %> <%= submit_tag ''Cancel'' %> How do I know which button get pressed by the user? One more thing, how to specify the default selection in a
2006 Apr 07
3
Different validation for different users
Hi, I have two types of users; normal user and admin. I have a field called priority in the table task. This priority field is invisible to the normal user, but not to the admin. The admin has to fill in the priority field when he adds a record via filling a form. Thus, i need to add validates_presence_of :priority to the model task. But, if i do this, then the normal user can''t add a
2006 May 23
1
Detecting internet connection
Hi, Is it possible to detect whether the internet connection is on from the application? Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
2006 Aug 11
6
css - location of files.
Hi all. I have the following scenario. http://myapp/site1 is using <%= stylesheet_link_tag ''myapp_standard'' %> to define the stylesheet for layout, I have myapp_standard.css in /public/stylesheets and it works fine. However, in the stylesheet I define a image to use for my site background. eg: html, body{ background-image: url(mysite_background.jpg); padding-top:
2006 Apr 16
5
ActionMailer
Is there a way to connect to a SMTP server that requires TLS since ActionMailer doesn''t support it? Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
2
W3C Standard
I''m rather new to web programming. I''m wondering, does rhtml file conform to W3C standard? Or is there a way to make it conform to W3C standard? Thanks, Lantis. -- Posted via http://www.ruby-forum.com/.
2006 Jul 07
6
mongrel/win32/apache2 link modification question.
I have apache2 - mongrel 0.3.13.3-mswin32 running, on a server 2000 pc, by folowing the ''Serving Multiple Rails Applications on Windows with Apache and Mongrel'' ( http://tinyurl.com/z9ftz ) the question I have is why is why is http://localhost/myapp/ addded to the front of all my links and how can I stop it? origanal link using webrick /employees/edit/1214 now
2008 Mar 18
5
stylesheet link causing routing error
Hi - I think this is a simple 2.0 conversion issue. In my application layout, I have a simple stylesheet link tag: <%= stylesheet_link_tag ''application'' %> In my public/stylesheets directory, I have application.css When my pages are rendered, I get: <h1>Routing Error</h1> 27<p><pre>No route matches "/stylesheets/application.css"
2006 Apr 12
13
Public Directory not accessible
Been trying to deploy my rails app on Redhat ES3, Apache2, FastCGI with Plesk all day. Fun stuff. Basically, the issue that I can not solve has to do with access to /public. None of my images, javascripts, etc. are working in the app. Trying to access any of these results in a 404 (or routing error if in developer mode). Oddly, the 404 file it displays is -- you guessed it -- in fact *in*
2006 Jun 01
10
Stylesheets not being recognized
I am a newbie, but have worked through 4 or 5 tutorials. I am using InstantRails. The problem is that I cannot determine how the style is being included. I have modified the stylesheet from /public/stylesheets/, even removed it. All to no avail. The inline <style>...</style> code is still being included from somwhere. Where? What am I missing? thanks, steve -- Posted via
2007 Nov 07
11
Links go to ''localhost''
I am using Apache2.2 + Mongrel on my machine. Now I am accessing it over LAN. When I enter http://mymachinename/myapp it opens fine but when I click on any link in my rails app, it replaces mymachinename with localhost (http://localhost/myapp/controller/action) and thus I am unable to access it from remote location.
2007 Nov 23
4
How to pin down location of views/shared directory ?
My app has a header & footer I want common to each section. They live in app/views/shared/_header.rhtml & _footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: <div id="header"> <%= render :partial => ''shared/header'' %> </div> They contain many lines like this: <a
2008 Jun 16
3
Apache rewrites with mongrel
I?m knew to rewrites on apache in combination with mongrelcluster. It?s urgend for me, because the server has an loadaverage about 10 :-((((( Ok so I?m using 3 mongrel-server on an mongrelcluster. The Loadbalancer ist apache I think, that my rewrites are not correct. Please can anybody check my rewrites ? That?s in my /etc/apache2/conf.d/rails.proxy_cluster.conf <Proxy
2006 Dec 16
5
trying to add another app
hey all, I have an app working great with apache2 and mongrel_cluster. However, I''m trying to run another application and now when I go to app1.comit falls to app2.com and the opposite. That''s probably because I messed up somewhere with the cluster. this is the content of my conf.d/app1.proxy_cluster.conf: <Proxy balancer://mongrel_cluster> BalancerMember
2006 Mar 18
3
Weird stylesheet_link_tag issue after moving servers
Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" />
2010 Oct 15
18
Newbie - Rails 3 lightbox?
Hello! I''m trying to create a simple image "popup" effect using Lightbox2, http://www.huddletogether.com/projects/lightbox2/. But I don''t get it to work. My code looks lite this: <span class="ad_image"> <a href="<%= ad.image.url(:thumb) %>" rel="lightbox"><img src="<%= ad.image.url(:thumb) %>"
2009 Feb 02
2
public facts repository
Hello all, I have set up a public svn repository with some facts that we have written over time: https://svn.ikw.uni-osnabrueck.de/dav/ikwadmin/public/puppet/facts/ (yes, it is svn). Now, I was wondering where to document this on the puppet-wiki (or should it rather be the facter-wiki) http://reductivelabs.com/trac/puppet/tags/facter%2Crecipe does not give any clear hint on this. Maybe I
2006 Aug 18
2
Including CSS from a stylesheet file in a an e-mail
How can I include the contents of the file /public/stylesheets/print.css in an RHTML page for ActionMailer? Because there is no controller or session, none of the usual tricks work. Do you have to use basic file IO or there some convenience method I haven''t seen? Thanks Ashley -- "If you do it the stupid way, you will have to do it again" - Gregory Chudnovsky
2006 Jun 17
4
Win32 issues with 0.3.13
Hey, I have just a few observations to report about the new version of Mongrel (0.3.13) on Win32. 1. When installing a new service, I have to use -N instead of -n to set the name of my app. The help file (-h option) has this right but the examples and such on the website all use -n. 2. The website documentation on the Win32 howto lists service::delete as a command but it should be