similar to: [OT] Serving Multiple Stylesheets

Displaying 20 results from an estimated 1000 matches similar to: "[OT] Serving Multiple Stylesheets"

2006 May 31
13
What are controller modules *for*?
I am aware that controllers can be placed in modules: ruby script/generate controller modulename/controllername But what does this buy me? Is it just a way of ensuring that my source code is nicely arranged, or can I use the fact that a set of controllers are all within a particular model to implement functionality common to all of those controllers? Why am I asking? The app
2007 Feb 15
1
Images and stylesheets are not serving
Hello One of ours sites has just lost all it''s images and styling. It''s not a very busy site at all, so it might have been not working properly for some time now. Here''s how we start it in Lighty <pre> $HTTP["host"] == "gregynog.glam.ac.uk" { server.document-root = "/www/rails/greg/current/public/" server.error-handler-404 =
2019 Mar 08
1
Re: [PATCH nbdkit] Add new filter for rate-limiting connections.
On 3/5/19 4:38 AM, Richard W.M. Jones wrote: > --- > filters/delay/nbdkit-delay-filter.pod | 4 +- > filters/rate/nbdkit-rate-filter.pod | 84 +++++++++ > configure.ac | 2 + > filters/rate/bucket.h | 62 +++++++ > filters/rate/bucket.c | 173 +++++++++++++++++++ > filters/rate/rate.c | 235
2005 Oct 22
1
Advice....
Hi, I''m a relative newbie to LARTC but I have read Matthew Marsh''s book and lurked on this list for a while.... I still seem to be missing a few key ideas here.... So... Maybe folks on the list will be kind enough to help. I have two different ISPs. Cogent and Bell. I have three different firewalls (2 PIX and 1 IPCop). And I have an Ubuntu Linux box doing LARTC for around
2010 Jun 21
9
[BUG] Segmentation fault
First of all, I use RVM and I installed ruby-1.9.2-head, which I used to create a new rails3 gemset. Then I changed to that gemset with rvm use 1.9.2-head@rails3 and I ran bundle install over the following Gemfile: source ''http://rubygems.org'' gem ''rails'', ''3.0.0.beta4'' gem ''sqlite3-ruby'', :require =>
2006 Mar 14
5
Controller Naming Question
Is it possible to have controllers named the following? /admin /admin/user If not, is there some way to get it to work with routes? I want to have some actions at the url /admin/<action> and some at /admin/user/<action> (obviously in admin/user controller). Thanks!!!
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 =>
2002 May 29
0
FreeBSD Security Advisory FreeBSD-SA-02:27.rc
-----BEGIN PGP SIGNED MESSAGE----- ============================================================================= FreeBSD-SA-02:27.rc Security Advisory The FreeBSD Project Topic: rc uses file globbing dangerously Category: core Module: rc Announced: XXXX-XX-XX Credits:
2010 Feb 19
3
Hooking validates
I want to hook the validation routines so that I can flag html labels and change their color to better indicate which fields need to be corrected in a form. Is there a way to do this conveniently and/or conventionally? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this
2006 Jul 22
4
Accessing the controller name in your views?
I need to know what controller and action the user is currently in to do various things in my layouts/application.rhtml file. Isn''t there is a better way than: <% if params[:controller] == "whatever" && params[:action] == "whatever" %>some html<% end %> I know in the controllers you can just use controller_name, but that is not provided
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
2007 Oct 23
9
Running rails specs outside of the normal project tree
I want to create a spec/regressions directory with various regressions (for my rails project). I tried the following: describe LoginController, "regression for user creation when steves_sister does not exist", :behavior_type => :controller do controller_name :login before :each do @params = { "commit"=>"Create Account",
2018 Jun 14
2
Weird permissions issues with samba shares and XFS
Hi, We are trying to deploy samba sharing on Centos 7.4, linked to windows 2016 AD for authentication. We are having an issue related to permissions where different directories with seemingly the exact same permissions cannot all be accessed from smbclient. I was hoping somebody could help me figuring this out. We have the following structure: 1. one LVM2 volume on /dev/storage/test (XFS)
2006 Feb 13
2
categories and admin/categories - different controllers and templates?
Is there some way to have these two sets of URLs use totally different controllers and templates? categories/list categories/show/1 admin/categories/list admin/categories/edit/1 admin/categories/destroy/1 admin/categories/update/1 Besides, of course, using different controller names ;). The first URL is publicly accessible, while the second contains admin functions. Also, with the second,
2005 Oct 25
2
generate scaffold ignores controller parameter
Since I upgraded from Rails 0.13.1 to 0.14.1 "generate scaffold <Model> <Controller>" doesn''t take any notice of the controller parameter. Anyone else suffering from this? E.g.: C:\Ruby\work\test>ruby script\generate scaffold User Admin exists app/controllers/ exists app/helpers/ create app/views/users exists test/functional/
2005 Jul 15
5
Nested Controllers
Hi there, I wondered if anybody had any experience with having nested controllers?For example, I''d like a hierarchy something like this: /product /product/list /product/detail /product/detail/category I can''t find any documentation on this, so any advice/experience anybody might have would prove useful. N.B. This is for a generator which builds Views and Controllers
2006 Jan 23
5
Variable Scoping Problem
I am having some problems with variable scoping. I need to be able to set a variable that is accessable by other methods within the class (or instance) (i.e not global). An example is 2 pages that change a class variable: class AjtestController < ApplicationController def initialize @@variable = "init" end def show @display = @@variable @@variable = "change 1"
2006 Jun 01
9
access model from controller
Hello, Rather new to RoR, so I''m not sure about the terminology and such :-/ . My question is: how could I know the model which is associated to a controller? For example: - controller class is TestController, which is a subclass of ApplicationController - associated model class is Test How could I write some code in a method of ApplicationController to dermine the current
2007 Jul 24
4
spec''ing helpers that use controller
Hi all, I''m in the process of creating rspecs for my helpers. One of the helpers in app/helpers/application_helper.rb looks like this: def page_name @page_name || "Define @page_name in #{controller.controller_name}::#{controller.action_name}" end The rspec is simply: it "should something" do page_name end
2007 Mar 19
3
controller_name with dynamic controllers
I''m writing a controller which should only be inherited from, something like the generic crud controller seen here: http:// geekonomics.blogspot.com/2006/07/crud-and-shared-controllers.html Now, in my spec, I would like to create a controller which inherits from the generic CRUDController, without actually creating the controller. This controller is *only* for testing. How can I