Displaying 20 results from an estimated 6000 matches similar to: "html extension?"
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using
apache and scgi. The application runs fine with webrick.
I have a site. Let''s call it "mysite.org". There is a variety of content on
that site.
I would like to add a rails application to that site. Let''s call the
application "myapp".
So we will have urls of the form
2006 Feb 22
1
Urgent help needed
Hi,
I''m on Apache 2.0.54, Linux Fedora Core 2 with Plesk.
I installed a Rails application previously on the box using SCGI and
it works fine; even now.
I''m trying to get a second app online and it fails. Same config,
except for the SCGI runner ports of course.
It looks like the error comes from the fact that the mod_rewrite
loops. WHY ???
BTW : I have to put this app
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication.
I''ve got a Rails site with I think a very typical setup: a mongrel
cluster behind an Apache proxy. So Apache''s handling the static stuff
and it hands off dynamic content to mongrel. I want to put the site
temporarily behind Apache''s basic authentication. What I get when I
do this is that is a password prompt which
2006 May 26
1
RewriteRule to strip www. ?
I''m trying to add a RewriteRule to my .htaccess to remove the www.
prefix from requests. The following works on its own:
RewriteCond %{HTTP_HOST} www.mysite.com
RewriteRule (.*) http://mysite.com/$1
But it blows up when I try to add it to my .htaccess file. I''ve tried
moving it around, before and after the various Rails-specific rules, but
I can''t get it to work.
2006 Jan 16
3
routing to controller inside module
Hey,
am i to stupid to find the information about how to route to a
controller in a module? Maybe module support has gone!
The controller is under:
app/controllers/admin/my_controller.rb
The my_controller.rb file looks like this:
module Admin
class MyController
def index
render :text => ''Hello!''
end
end
end
How does a route to all controllers under module
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails.
acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered
lists through a join-table. It is providing almost the same Api as
acts_as_list. The position column has to be defined in the join table.
You can find additional information at:
http://www.inlet-media.de/acts_as_habtm_list/
Install it executing this command
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find
them. However, i''m trying to fix this one, i cant seem to get it to work.
I have two tables A and B that have a one-to-one relationship. Table B
belongs_to Table A. Table A has_one Table B. I''m creating instances of
Table A in different places, depending on the controller. However, for each
2006 Mar 04
4
Submitting data to two different tables with two different models
I''m very new to Rails. I''ve been reading Agile Web Dev for a while and read
up on ruby, but I''m still learning.
I designed a website for someone for an engineering shop. New projects had
to be added manually.
Well, I figured this would be a great canidate for railifying! I have the
form working perfectly, you can add your data and get it in a table, and
listing
2006 Mar 08
3
List and update values from text_field_tag fields
Hi,
I populate a couple of text_field_tag''s with data from an AciveRecord
object. Some fields are editable and at the end of the page there''s a
submit button. I want the new values to be updated in the DB but by
default my original values are stored again.
How do i go about doing this?
thanks/jens
AIM: jens.tinfors@mac.com
Skype: jtinfors
2006 Apr 13
2
Rail''s basic idea
Hallo,
what links would you recommend for an advanced programmer, who wants to
know something about the basic idea and architecture of Rails.
That''s no question for tutorials or howtos, but rather for theoretical
documents and field reports.
Can you help me?
--
Norman Timmler
http://blog.inlet-media.de
2006 Mar 22
10
Need for multiple acts_as_list
I have a model "Childmodel" that belongs_to two other models "Parent1"
and "Parent2". "Parent1" "has_many :childmodels, :order => :positionp1"
and "Parent2" "has_many :childmodels, :order => :positionp2". i.e. The
child is independently positioned within each of its parents.
This works fine and gets me the useful
2006 Mar 04
6
Can''t get Fast CGI working.
Well, after many hours of tinkering and internet browsing I just can''t
get Fast CGI to work with Rails and Apache 1.3 on FreeBSD 5.4 Normal CGI
works fine, but as soon as I enable FastCGI in .htaccess I get the
message:
Application error
Rails application failed to start properly
Here''s what I''ve done so far:
- I''ve installed all the necessary software for
2006 Mar 24
19
Storing images in Ruby
Hi,
I''d like to allow users to upload images and store those images in a
Postgres database. I''ve looked through the example in "aguile
development with rails" which suggests using the MySQL blob field.
When I wrote a similar app in Java, we Base64 encoded the file and then
stored it as a text field. Is this easy to do in RoR too? Any advice you
can give me would
2008 Oct 06
8
.htaccess rewrite
can someone help me with an .htaccess rewrite?
i''m trying to convert all requests to "/?spot=8888" to be "/locations/
888".
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 Mar 03
3
embedding a forum inside a rails app
what is the best way to embed a forum (phpbb is currently installed under
/public/forums/) inside my layout ? I dont want the foum to be its own page
i would like it to appear inside the main part of the page with navigation
and border in tact. is this possible with the current way it is installed ?
thanks
adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 28
6
Log Files in View
Is it possible to display the log files in the view?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
3
validates_associated problem
Hello,
I have a situation where an ''employee'' belongs to a ''department'' and
have setup the relationship as follows.
class Employee < ActiveRecord::Base
belongs_to :department, :foregin_key => "department_id"
validates_associated :department_id
end
class Department < ActiveRecord::Base
has_many :employees
def validate_on_update
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my
RoR app and I keep getting:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
2006 Mar 23
3
Newbie: ''find'' across multiple relationships
For security purposes, I often want to find objects that are ''visible''.
e.g.
class Person < ActiveRecord::Base
has_many :x
end
...
@person.x.find(params[:id]) as opposed to X.find([params[:id]). Simple
enough for me.
My question:
Say we have -
class Person < ActiveRecord::Base
has_many :x, :class_name ''Z'', ....
has_many :y, :class_name
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone!
I''ve noticed, that the book uses double quotes almost everywhere. It is like
<%= javascript_include_tag "prototype" %>
I''ve checked the "programming ruby, 2ed" book and found that double
quotes are most suited when escape sequences and substitutions are
required. Isn''t it more semantically correct to write this code like