similar to: Template "specialisation"

Displaying 20 results from an estimated 200 matches similar to: "Template "specialisation""

2006 Aug 18
7
Rewriting URLs - help needed
Hello - I''m grappling with some tricky URL rewriting with Apache 2 and mod_rewrite, and could use a hand. Briefly: URL for application is: www.servername.com/path/to/app/ There is no Alias directive; the application is in the directory /www/content/path/to/app/ on the server file system. The FastCGI dispatcher (dispatch.fcgi) lives at: /www/fcgi-bin/path/to/app/dispatch.fcgi Inside
2006 Aug 13
3
Logging in Rails
This is a newbie question, I have a class which is not derived from ActionController or ActiveRecord but I want to use logging, I tried require but still logging does not work - This class is located in a file in "model" directory. ------------------------------------ require ''logger'' class Cart def add_product(product) logger.info("Searching for product
2006 Aug 04
1
route error with controllers in a module, should just work
This is ALL I have added to my routes.rb map.connect ''admin'', :controller => ''/admin/welcome'' I have found plenty of examples saying this is correct if you have a WelcomeController in the Admin module, which I do :) But now webrick won''t even start ??? Look at those 4 colons ::::, what is that about ? help ! => Booting WEBrick...
2006 Jan 13
2
FastCGI problems
I''m having a lot of problems with my Typo install. My fastcgi fails horribly after a reboot: [13/Jan/2006:16:55:28 :: 19796] Dispatcher failed to catch: (Interrupt) /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each'' /usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!''
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an Apache server. It seems to work fine but my urls are incorrect: all urls reference / which is not where my application runs at the Apache server. How do I set the base url of a Rails application? My Apache has the following proxy rules: ProxyPass /hieraki http://localhost:3001 ProxyPassReverse /hieraki
2006 Jun 13
5
Transform Rails site into DVD
I''m considering implementing a PHP based site that display videos with quite some database logic to Rails. Now we were considering publishing the site on DVD too. Is that possible (e.g. with RubyScript2Exe)? How fast is database performance going to be? Currently there are movies inside the database but we can extract them if necessary. The database scheme is quite large and the number
2006 Jun 14
5
Rails to static site
For users without an internet connection we are thinking about converting a rather large site to a DVD. As dynamic solutions with databases seem hard (see another thread) we are also considering a static html version. The site is clearly convertible to a static version, I can make sure that all search functions are turned off. Can the conversion itself optimized with Rails? Do you know solutions
2011 Jun 09
8
Fail to call
Hi, I''m trying create a user system for a future project but I have a problem when I want give to my users the "Welcome". This is my code: #application_controller class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user private def current_user_session return @current_user_session if defined?(@current_user_session)
2007 Oct 16
6
RailsStory runner - empty response
I generated a new rails app then installed rspec and rspec_on_rails from trunk. I then created a sample story: require File.dirname(__FILE__) + "/helper" Story "View Home Page", %{ As a user I want to view my home page So that I can get a birds eye view of the system }, :type => RailsStory do Scenario "Publisher with no videos" do When
2007 Oct 16
5
RailsStory - lessons learned
After trying RailsStory for a few days, I have learned: 1. Rails testing support does not serve up static pages 2. RailsStory masks errors generated by the app under test 3. The masked errors are available in log/test 4. I should read log/test more often See http://pastie.caboo.se/107876 for an example for points 2 and 3 The welcome controller fails when the HTTP_USER_AGENT is missing.
2006 Mar 23
2
rails lighttpd fastcgi archlinux
When I try to access the rails app, it''s giving me "Routing Error: Recognition failed for "/"" displayed on my browser. Has anyone ran into this problem before? -- Vincent H Gov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060323/78ccb76e/attachment.html
2006 May 29
2
Subfolder in Maildir
Hello, We have installed a brand new Dovecot because it seems very interesting as an IMAP server. We created a mailbox for a test user and we succeeded in copying some mails into it. However making subfolders does not work. The only folders we can create are in the root, next to the INBOX that is. We thought Maildir does support subfolders (as opposed to mbox), are we wrong here? Our Dovecot
2010 Jul 16
2
Can I set default parameters for the default graphics device?
I'm completely new to R, and I'd like to do something like this: > x=c(1,2,3) > plot(x,x) At this point, R creates a file "Rplots.pdf", since the default device is PDF and the default filename is "Rplots.pdf". I know I can set the default device like this: > options(device="png") But is there a way to set the default device's
2006 Jun 27
1
Help me, I stuck ..
I have three tables and is not allowed to change data scheme: CREATE TABLE `applicants` ( `id` int(10) unsigned NOT NULL auto_increment, `fullname` varchar(60) NOT NULL default '''', `address` varchar(60) NOT NULL default '''', PRIMARY KEY (`id`) ) ; CREATE TABLE `positions` ( `id` int(10) unsigned NOT NULL auto_increment, `position_name` varchar(30)
2006 Aug 14
4
Test for string in string
Hi, Is there an easy way to test if a substring exists in a string? I''m using this check: if mystring.index(substring) > 0 but it doesn''t seem to be working.... Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Aug 12
4
Ferret Wierdness
Hi, I have installed the ferret gem (on WIN XP). My search and result view is working, but it comes back with empty results all the time. It seems like ferret is building the index (there is 3 binary files in the index directory). If I add the line: acts_as_ferret :fields => [''title'',''description'',''price'',''website_url'']
2007 Nov 29
7
Sessions Not Working In Production Mode
I am completely stumped by this problem, and would welcome any suggestions people could provide. My application uses active-record-based sessions. In development mode, the app works fine with sessions, no problems. But in production mode, the process works for a while (a few hours, maybe more), but at a certain point the session mechanism stop working. It looks like the system stops storing new
2006 Jan 03
1
RequireResourceHelper for JS and CSS
The following was posted on my blog at http://blog.inquirylabs.com. A friend of mine recently expressed interest in this code snippet, so I thought I''d send it out to anyone else who''s interested. This module makes it a lot easier to ''require'' javascript and cascading stylesheet dependencies inside your views or controllers. By
2008 Apr 08
3
Session Expired for Profile Publishing
Ok. I''m not having any success with publishing profile FBML. Example code: class WelcomeController < ApplicationController layout "facebook" ensure_application_is_installed_by_facebook_user def index @user = facebook_session.user ... @user.profile_fbml = render_to_string( :template => ''welcome/profile'' ) end end Results in
2006 Aug 18
3
RoR logo on own webpage
Hello, are there any restrictions in using the RoR logo on my own homepage? Something like: powered by Ruby on Rails ..__logo__.. -- Jochen