Displaying 17 results from an estimated 17 matches for "chrismtaggart".
2006 Mar 17
10
breadcrumbs?
Before I start down this road, has anyone done a breadcrumbs
implementation they''d be happy to share?
Thanks
Chris T
2006 Mar 16
9
Help needed on STI syntax
Struggling a little with getting the syntax right for a STI model. Prob
just being a bit dense.
Couple of questions I''m hoping you guys can answer:
Assume here I''ve got:
class Person
class Manager < Person
class Slave < Person
1) How does person[:type] differ from person.type when type is the
column used to specify the subclass. They seem to output the same
2006 Mar 20
9
jEdit Snippets for Ruby on Rails
-----------------------------------------------------
Announcing: jEdit Snippets for Ruby on Rails
-----------------------------------------------------
I thought I''d "give a little back to the community" and whip up some
SuperAbbrev files for ruby and rhtml that mimic all of the Textmate
Rails bundle snippets.
Note: This was totally inspired by Textmate and the syncPEOPLE
2006 Feb 07
3
Problems with flickr gem: already initialized constant
New to rails so please bear with me. Am having difficulties with the
flickr plugin. trying to follow the video as a starter, and keep hitting
the following problem when I require ''flickr'' in the environment.rb file
testbed:/srv/www/htdocs/carstuff # ruby script/server
=> Booting WEBrick...
/usr/local/lib/ruby/gems/1.8/gems/xml-simple-1.0.7/lib/xmlsimple.rb:274:
warning:
2006 Mar 21
2
Need :through to work as has many rather than HABTM.
I''ve a horrible feeling I''m missing something here, but I''d like to have
something like :through to model a has_many relationship rather than a
HABTM relationship (and I don''t think it does).
The is the model I have (simplified):
Users have many Models (and Models belong to Users)
Models have many Pieces (and Pieces belong to Models)
In (badly drawn)
2006 Mar 07
12
what is the IDE tools used in the video?
What is the IDE tools used in the video on the homepage of the
www.rubyonrails.org?I had thought it was Komodo,however after I had
installed that i found they were different.I do think the IDE used in
the video is very cool for its autocomplete abilities especially in the
Views development.Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 10
19
validates_date plugin for ActiveRecord
This plugin gives ActiveRecord the ability to do stricter date checking.
Example:
class Person < ActiveRecord::Base
validates_date :date_of_birth
end
This will ensure that date_of_birth is a *valid* date. The date can be set
initially as a string in any of the following formats:
"2006-01-01"
"1 Jan 06", or "1 Jan 2006"
"1/1/06" # Day /
2006 Mar 17
7
OT: Subversion folder cleanup
How do you clean up your app folder to place onto the server? I want to
get rid of all the .svn stuff.
Seth Buntin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/cc81d9f7/attachment.html
2006 Mar 03
0
Help with AJAX autocomplete and links
Got the autocomplete search from Rails Recipes nicey working with one of
my tables/models, but struggling to work out how (or if) I can have the
options it brings up be links, so clicking on them takes you straight to
the details page for that item rather than it ending up as a field in a
form box. Is that (or something similar) even possible?
Disclaimer: Noob, obviously, on ruby, rails and
2006 Mar 15
0
Acts_as_nested performance query
Wondering about using the acts_as_nested for a model but concerned about
the performance overhead of having to rewrite the table each time and
entry is added or removed(and locking it while it''s happening or risking
data integrity probs). Wasn''t really familiar with the structure so did
a little reading up on it, and one solution to this seems to spreading
the table out, so
2006 Mar 16
1
Problem with STI and validation
OK. Here''s another one on STI (thanks for the help of all of you with my
previous STI question, and I promise to update the wiki with the info).
I''m having a prob with validation with the sub-classes. It''s a bit
long-winded to explain, but I''ll post all the logs and code if there''s
no obvious answers. Basically, however, I have validation on the
2006 Feb 22
2
Newbie seeks helps ordering ancestors from acts_as_tree
I''m sure this is really obvious but I''m feeling my way here with rails
(and Ruby) and have tried a couple of things without success. So, can
anyone tell me the best way to reverse order the retuen list of
ancestors.
In the controller I have:
@ancestors = @category.ancestors
which returns an array starting at the parent and ending with the root.
When I then loop through the
2007 Jun 10
2
Problem replacing form element with another form
Having a strange problem with replacing a form with another form. If I
do this
Element.replace("some_form_id", "<form>dummy text</form>") where
"some_form_if" is the id of a form element only the text between the
form tags is inserted, not the form tags. Tend to think I must be
doing something dumb, as can''t find any discussions on this anywhere.
2006 Mar 05
1
Help with Self-Referential HABTM
With the help of the Rails Recipes have got a self-referential HABTM
relationship working, but I''m really struggling with getting a new entry
from a form accepted. i should say here that the form is also submitting
info for the join table too.
So in my model I have:
class Type < ActiveRecord::Base
has_and_belongs_to_many :subtypes,
:class_name => ''Type'',
2006 Mar 14
2
[OT] Comments wanted on use of bitwise op
Here''s the scenario. I have a main tree-like table (actually it''s more
of a hierarchy), where the entries (or at least some of them) can be
categorised as one or more of a fixed number of types (prob about 6 poss
types). So an entry could be a Type A and a Type D; a Type C, D, E; just
a Type F; etc.
Having a join table would seem like it might get rather expensive since
2006 Feb 28
6
Problem with select and each_with_index
Disclaimer: Ruby newbie at work
Thought I was going so well. Wanted to produce a select box from an
array constant, with the indices returned as values , and the array
values used as the descriptions. Checked out Ruby RDoc and saw there was
an each_with_index method and came up with:
<%= select (''type'', ''typecategory'', Typecategory.each_with_index
2006 Mar 22
4
Problem with ACL plugin system
Don''t know if anyone else has experienced this but I''m having a problem
with the access_denied method in Ezra''s ACL access control plugin. It''s
working fine (in conjunction with acts_as_authenticated) until it comes
across a user it denies access to, in which case it throws the following
error:
NoMethodError in Admin#index
protected method