similar to: Rails and Apache: Error

Displaying 20 results from an estimated 1000 matches similar to: "Rails and Apache: Error"

2006 Jan 21
9
Where to put method
I''ve got following code in GenresHelper.rb def album_list(genre) albums = genre.albums.sort list = albums.collect { |album| link = link_to album.title, :controller => ''albums'', :action => ''show'',
2006 Jan 04
5
help with link_to_if, I can''t make it work...
For the life of me I can''t get it to work. Here is an example of my syntax. I''m trying to make comment.name a link to comment.web_site only if there is a comment.web_site. Can someone please help? <%= link_to_if(comment.web_site.length > 0, comment.name, comment.web_site {"class" => "comment_by"}) %> -- Posted via
2005 Dec 15
6
Navigation menu
I have a navigation menu that contains a link per controller in my application. This menu is the same for all controllers, but I want this behaviour: <a>Users</a> <span>Statistics</span> and <span>Users</span> <a>Statistics</a> depending on the page you''re currently on. I''ve put a <render :partial =>
2006 Apr 03
6
getting fcgi to work
can some one help me with my install? i''m having a touch time getting fcgi to play right with apache. i ran "gem install fcgi" and this is the output i get: Attempting local installation of ''fcgi'' Local gem file not found: fcgi*.gem Attempting remote installation of ''fcgi'' Updating Gem source index for: http://gems.rubyforge.org Building
2006 Jan 03
1
Passing parameters with link_to
I have following code in my controller: class AlbumsController < ApplicationController def list_by_year(year) @album_pages @albums = paginate :albums, { :per_page => 10, :conditions => ["year = ?", year] } render :action => ''list'' end end Now I want to make a link to the list_by_year action in
2006 Jan 04
7
variables in layouts
I have a layout that provides the basic outline of each page in my app. It has a title, footer and a navigation bar. In the title I want to put the name of the current user that is logged in. I could do something like @session[:username] but I would rather encapsulate that into a single variable so that I can change the key in the session map if I want without having to goto each page that
2006 Jan 04
7
wrong number of arguments error
I keep getting this error every time I try to pass a value to a method. Here is a sample nonworking method. I''ve been pulling my hair out over this all night! Why won''t it work!? My url path is :3000/store/browse/shoes and I''m getting this in the log Parameters: {"action"=>"browse", "id"=>"shoes",
2006 Jan 03
3
RoR and Apache2 and app in local directory
Hi all. I''m at my wits end.. I''m trying to set up a Rails app (on a Ubuntu system), within the public_html directory in my home directory (as opposed to the /var/www/ directory). ie. in /users/john/public_html/myapp I have a simple app setup, and using the Webrick server it works fine. But trying to get Apache to work is becoming a pain in the *&^*. I followed the
2005 Jan 20
2
Excel files & file modification time
Hi everyone, I have a problem on samba running on RHEL 3 kernel 2.4.21 with RHEL 3 samba packages - samba-3.0.7-1.3E.1. The problem is, that when people open excel files (with office 97 version of excel) the file modification time is changed (even if the file is only opened and excel closed without saving). This same problem does not occur on the [homes] share (in every test untill now it never
2005 Jun 30
4
A Memoir on FastCGI and Apache
With the release of our filmfury.com project, I''ve been trying to rise to the stature of a true system administrator in the last couple of days (haha). I''m trying to understand how all of the pieces to this apache/fastcgi deployment fit together. Here''s what I''ve learned so far: * You need a separate FastCGI server for each Rails application on your
2007 Dec 12
2
discrepancy between periodogram implementations ? per and spec.pgram
hello, I have been using the per function in package longmemo to obtain a simple raw periodogram. I am considering to switch to the function spec.pgram since I want to be able to do tapering. To compare both I used spec.pgram with the options as suggested in the documentation of per {longmemo} to make them correspond. Now I have found on a variety of examples that there is a shift between
2005 Jan 19
1
Problems with smbpasswd: any local changes are discarted after connection request
Hi, Can anybody confirm the following problem: Sequence: bash-2.05# grep ankerpos /usr/samba.moonrock/private/smbpasswd ankerpos:921:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-0 bash-2.05# /usr/samba.moonrock/bin/smbpasswd -c /usr/samba.moonrock/lib/smb.conf ankerpos New SMB password: Retype new SMB password: bash-2.05# grep ankerpos
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 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 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 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 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
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 14
8
email address parse
hi all how to parse such email string to a array: #-------------------------------------------- "joe black"<joe_1@joe_black.com> joe_2@joe_black.com, joe_3@joe_black.com #-------------------------------------------- seems emails from user input include various format. and i have to split them to a array. any idea? regards. -- Posted via http://www.ruby-forum.com/.
2005 Sep 18
2
Maildir quota's
Hey, is http://www.dovecot.org/patches/1.0/quota.tar.gz supposed to work with maildir quota's for virtual mailboxes? Using it with dovecot-lda (cvs) results in DSN Your message was automatically rejected by Sieve, a mail filtering language. The following reason was given: Internal quota calculation error Thanks, Lieven -------------- next part -------------- A non-text attachment was