Displaying 20 results from an estimated 24 matches for "protocool".
Did you mean:
protocol
2006 Feb 17
4
Table with Constants
I would like to have a table with some constants to use them later on
for a drop down menu. How can this be done?
My table looks like
Table with constants
------------------------
id | key | value | type
------------------------
1 | M | Male | sex
....
I know it can be done like this
<% select ''object'', ''method'', Constants.find(:all, :select =>
2006 Jun 07
4
Question: coding protected methods
Apologies first, because I need to ramp up on Ruby and coding Ruby in Rails,
however it''s my 3rd day with this beast :) so I''m asking :
When I added protected methods to the model before it was like:
protected
method....................
end
Would this be a valid way to write a protected method as well ?:
attr_protected :column1, :column2
Perhaps this particular call
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi,
in the past few months someone posted an entry on their blog about
how to do validations in non-AR classes and I cant find it any more.
Anyone have a link?
Thanks,
Trevor
--
Trevor Squires
http://somethinglearned.com
2006 Jan 09
4
Engine install problems with OS X
...ugin install engines" in a freshly created rails app I get
the following:
Macintosh:~/My Web Sites/nckapool bill$ script/plugin install engines
svn: PROPFIND request failed on ''/rails/plugins''
svn: PROPFIND of ''/rails/plugins'': 403 Forbidden (http://
svn.protocool.com)
svn: PROPFIND request failed on ''/public/plugins''
svn: PROPFIND of ''/public/plugins'': Could not resolve hostname
`svn.substance-it.co.uk'': No address associated with nodename (http://
svn.substance-it.co.uk)
export: Create an unversioned copy of...
2006 Mar 22
5
Class Caching Problem [was Newbie Question about Custom Classes]
So any other ideas as to why my custom class under app/models is being
cached even though all the caching is set to false in the
config/environments/* files? Currently I''m having to restart WEBrick
after EVERY change to the file. The controllers and views are
reloading just fine and not being cached. It''s just the custom class
I created that''s being cached.
Any ideas
2006 Jul 09
1
Accessing the name of a controller''s module?
If I''m redirecting to a log in page, and saving the controller and
action name in the session hash, how do I also save the controller
module?
After the log in is completed, I can''t redirect back to the originally
directed page because it''s in a different controller module. For the
controller action name I can use the ActionController instance method
controller_name(),
2006 Apr 14
0
Trouble installing plugin?
...#39;'m developing on WinXP / Cygwin, with Rails 1.0 at the
moment.
$ ruby script/plugin discover
$ ruby script/plugin install exception_notification
svn: PROPFIND request failed on ''/rails/plugins''
svn: PROPFIND of ''/rails/plugins'': 403 Forbidden (http://svn.protocool.com)
svn: PROPFIND request failed on ''/public/plugins''
svn: PROPFIND of ''/public/plugins'': Could not resolve hostname
`svn.substance-it.co.uk'': The requested name is valid and was found in the
database, but it does not have the correct associated data be...
2006 Feb 04
0
Cartographer plugin problem: was: ArgumentError when installing plugins with -x
...found that the cartographer plugin has been moved to rubyforge. But
I am still getting an error trying to install it.
script/plugin install cartographer
svn: PROPFIND request failed on ''/rails/plugins''
svn: PROPFIND of ''/rails/plugins'': 403 Forbidden (http://svn.protocool.com)
svn: PROPFIND request failed on ''/public/plugins''
svn: PROPFIND of ''/public/plugins'': Could not resolve hostname
`svn.substance-it.co.uk'': No address associated with nodename
(http://svn.substance-it.co.uk)
Plugin not found: cartographer
This was a...
2006 Mar 08
2
Exciting Website Development
I am a single person company designing an exciting new web application
for the general internet community.
I am looking for 1 or 2 RoR developers keen to be involved in the
development of an online application over the next few months.
This project will initially be a free service for all internet user with
the option for revenue through other sources later on - hence I am
looking for
2007 Aug 14
1
What's the good way to cache reference data?
I''m looking at an application that has 30+ lookup tables. By that I
mean your typical (id, description, created_on) affairs that contain
locations, zip codes, contract types and what not. Things that rarely
change, and are maintained by administrators.
It''s well known that when you have many lookup tables in the schema,
eager loading is not good enough anymore, and you need to
2007 Sep 21
3
TextMate Bundle and exception when switching to alternate file.
Hey,
sorry if this is something better suited to another list.
I''ve encountered a strange problem with the RSpec.tmbundle in trunk -
namely that it was raising an exception when pressing
ctrl-shift-downarrow (switch between spec and source - "Alternate
File").
I tracked down the issue to be handling of the file_type in
switch_command.rb#content_for() - the code expected the
2006 Mar 31
5
Model reloading problem
Hi all,
I''ve a model class Toto in the model directory.
I don''t understand why i have to restarts WebBrick to view changes i make
in this class
FYI : in the development. rb i desabled class cache with
config.cache_classes = false
Regards
Luciano
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 26
5
How can I dynamiclly generate models?
I am trying to write a plugin, ''acts_as_commentable'', for my models -
Image, Book, Music and so on, I do not want to use polymorphic
association, so very model should have its own comment class.
Here is my code
acts_as_commentable.rb
module Commentable
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def
2006 Jul 12
5
DRY version of RoR book PAYMENT_TYPES example
In the book there is an example how to convert DB payment value to more
readable from. PAYMENT_TYPES array is defined and then in your views you
can use it as Order::PAYMENT_TYPES.
The problem is: how should I convert DB values (for example with type
char(1)) to full string representation. I know that I can add a Hash to
a model: IM = {''S'' => ''Skype'',
2006 Nov 08
3
How to implement status codes in DB and Rails
This is more of a design issue I''m wrestling with, and was wondering
what other people are doing.
I have a products table with status values of In Stock, Out of Stork or
Discontinued. This is unlikely to change any time soon.
Approach A, is to have thses actual values in the status column, at
least the meaning is very apparent, yet querying for products with a
specific status could
2006 May 05
3
Plugin refresh time
Hi there,
I''m currently developing a plugin to do authentication and
authorisation. In the init.rb file of the plugin I have this code:-
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), ''lib''))
require ''open_advantage/authorisation''
ActionController::Base.send :include, OpenAdvantage::Authorisation
and this is the skeleton of my
2006 May 10
12
how best to implement lookup table?
Hi all -
I''d like to implement a lookup table in my app that contains some
reference data, just some status codes and their descriptions. What''s
the most appropriate approach according to the "rails way" of doing
things? Would I just implement a has_many relationship? Let''s say
these are Order status codes, would the StatusCode have many Orders?
This
2006 Aug 08
3
params object nil in controller action
Hi All
I am trying to implement a Back to Search Results functionality, by storing
the user''s search criteria (params) in session and then reusing those
params instead of request params when user clicks on "Back to Search Results
link". here is my code
________________________________________________________________________
def search
if session[:incidentSearch].nil? or
2008 Jan 21
8
Polymorphic URL helpers documentation and fixes
Yesterday I answered a question regarding polymorphic URL helpers on Core ML
and noticed that the module has no documentation. I''ve documented it and
rewritten unit tests using Mocha. I also optimized some of the code slightly
(nothing major, though). The patch also includes two fixes by Geoff Buesing,
who has done awesome work in this area in the past.
2006 Jun 18
10
acts_as_enumerated
Hello All,
Any one using acts_as_enumerated? I need help using (I like that it
caches values in memory)
I am working on a dating website and there are lots of options I want to
store as enumerated like
Status; divorce, single,
Sex: male, female
Eye color; blue, brown, green....
and lots more....
But I do not wanna keep them in seperate tables, and wanna keep them all
together.
Anyone has a