similar to: Is Services a reserved word?

Displaying 20 results from an estimated 10000 matches similar to: "Is Services a reserved word?"

2009 Oct 19
3
routing namespaced controllers
Hi, I have one controller in the /app/controllers/animals_controller.rb directory, and another in /app/controllers/production/services_controller.rb. The thing is that one Animal has many Services, and i''d like to access to them using something like: http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one
2007 Apr 02
2
redirect_to an uncertain hash
I am trying to deal with a redirection based upon what to do after a session has expired. I take the params hash and stuff it into a new session as part of the new login and then after login, I want to redirect to this hash as though they were params again... Thus I start by setting session[:direct_to] = @params And after I login, I want to redirect based upon the values in
2007 Jun 04
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
Support Requests item #11344, was opened at 2007-06-04 10:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=11344&group_id=85 Category: win32-service Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roberto V. A. (robo) Assigned to: Nobody (None) Summary: Can''t user win32-service inside of a Rails application Initial
2008 Jul 07
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
Support Requests item #11344, was opened at 2007-06-04 03:21 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=11344&group_id=85 Category: win32-service Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roberto V. A. (robo) Assigned to: Nobody (None) Summary: Can''t user win32-service inside of a Rails application Initial
2010 Oct 06
7
Passing a hash from the model to the view
I''m trying to display a drop-down menu by using an instance variable from a model. THIS WORKS... <div class="field"> <%= f.label :duration %><br /> <%= f.select ("duration", {"30 minutes" => "30", "1 hour" => "60"}, :prompt => "Select") %> </div> THIS DOESN''T
2007 Oct 18
4
Polymorphic Association?
Hi there- I''m a newbie to this board, RoR, and web development in general. So please forgive me if this is in the wrong place or if the solution is really simple... I''m trying to conceptualize the relationships between a series of models for a page creation function. What I''d like is to have a Content Page which consists of a series of Content Blocks. The Content
2007 Sep 07
4
fixtures in before(:all)
I was planning on using a fixture within a description that didn''t modify the fixture, so I put it in a before(:all) block: describe "Customer", "xml" do fixtures :customers before(:all) do one = customers(:one) end # ... As a result, I got this message: 1) NoMethodError in ''Customer xml before(:all)'' You have a nil object when you
2005 Jan 25
3
IPP2P broken?
Hi, I tried shorewall 2.2.0-rc4 and 2.2.0-rc5 on 3 different machines (just to be sure it''s not pebkac). The IPP2P support is broken, line like: DROP loc net ipp2p generates: iptables -A loc2net -j DROP that''s _wrong_ :) i have tried playing with debug to no avail, and I''m not that good at bashing... just to be complete, the suggested status.txt from one of the
2006 Apr 22
3
Re: Sum-up: Re-proposal: web forums
Hello, I have noted below problems that we can take care of, and those that aren't our problem, never were, never will be, impossible to be our problem, (you get the picture), because they are PEBKAC errors :) For all of those that don't know: PEBKAC = Problem Exists Between Keyboard and Chair. Molle Bestefich wrote: >Hi > >I've tried to sum up the problems with the
2006 Apr 21
8
web services and dealing with before_filter
Hi all, I''ve got a Rails app with a ApplicationController that looks like this: class ApplicationController < ActionController::Base before_filter :authorize, :except => :login def authorize unless session[:user] flash[:notice] = "Please log in" session[:jumpto] = request.parameters redirect_to :controller =>
2006 Jul 25
2
web services client problem
hi all, i have been trying to study web services using rails so far i succesful with server implementations in REST,SOAP,XML-RPC but the client code is troubling me. i have done most of the coding as per the rails book agile web development i.e implementations of the servers and when i invoke them they give result but when i try to acces them through another controller it gives time out error
2007 Oct 25
1
find - group - postgres
I am not sure that this is entirely a rails question as I am trying to run the command in postgres and I am getting the same error... controller code... @client_slot_count = ClientSlotsDaily.find(:all, :conditions => ["created_at > ? AND created_at < ? AND facility_id = ? AND client_id IS NOT NULL", starting_date, ending_date, @facility.id],
2007 Feb 08
2
One question on select tag
Hi I am now trying to learn some rails tag and encounter one question on "select" tag. == Controller def post_book @book = Book.new(:type => "CS") end == Viewer <%=select "book", "type", [ [" tale", "T"], ["computer science" ,"CS"]...
2016 Dec 02
4
CentOS 7, PS-2 moose
I just built a workstation, CentOS 7, fully updated. My user requires his three-button mouse, telling me that imaging software is written for three-button mice (so *please* don't tell me to tell him to get a new mouse). Anyway, no cursor. In both /var/log/messages and journalctl, I see "unable to enable mouse". What I read in messages and manpages is that PS-2 is default
2008 Jan 31
1
never have been able to run rake doc:app
Perhaps it''s just a Fedora thing but it would be nice to generate my application''s API $ rake doc:app --trace (in /home/storage/users/craig/svn/th-db/branches/phase5) ** Invoke doc:app (first_time) ** Invoke doc/app/index.html (first_time) rake aborted! Don''t know how to build task ''doc/README_FOR_APP''
2006 Jan 12
2
Web services and login?
Has anyone managed to do this? I thought about using sessions but they dont want to work for me... Here''s what I''m doing as a little test: class NotLoggedIn < Exception end class ProjectsController < ApplicationController wsdl_service_name ''Projects'' web_service_api ProjectsApi def Login @session[:loggedIn] = true end def GetProjects
2007 Apr 06
3
Mailer method missing
Rails dies when I try to call a method from my Mailer. But I have defined my method. What could I have missed? Here is the irb session: >> p = Person.find(1) => Person data... >> SiteMailer.request_admin_approval(p) NoMethodError: undefined method `request_admin_approval'' for SiteMailer:Class >> SiteMailer.method_defined? :request_admin_approval => true The
2007 Oct 15
0
Inconsistent results between multi_search and find_by_contents (is "other" a reserved word?)
I have a Computer type and I''m trying to query agianst it. When I do the query with find_by_contents, I get correct results. However, when I query using multi_search, I get incorrect results. I''m using the most recent version of Acts As Ferret and Ferret This returns the correct results: Computer.find_by_contents( "device_type:laptop AND os_type:other" ) This
2006 Mar 28
1
Rails generates query with reserved word for field name
For some reason, rails is generating this SQL: SELECT FIRST 1 * FROM questions WHERE (parent_id IS NULL) ORDER BY position DESC 1. There is no column named position referenced in my code. 2. POSITION is a reserved word in SQL92. It is the name of a string function that returns the offset of one string within another. I believe that this is a bug in Rails. Either position should be
2008 Feb 16
1
How to use a reserved word in italics in an expression
Dear R-helpers, > label2 <- expression(paste(italic(attraction function:), 'slope')) Error: unexpected 'function' in "label2 <- expression(paste(italic(attraction function" How do I tell R that in this case I don't want 'function' to be treated as a reserved word but as a string in italics? _____________________________ Professor Michael Kubovy