Displaying 20 results from an estimated 30000 matches similar to: "Join table with acts_as_list?"
2005 Jul 29
0
Fwd: Products and mod_rewrite
It appears this message bounced somehow, so I''m resending. Apologies
if it is a dup.
Begin forwarded message:
> From: Duane Johnson <duane.johnson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Date: July 29, 2005 8:59:30 AM MDT
> To: Steve Sloan <steve-2FdKsI0tZ45AfugRpC6u6w@public.gmane.org>, rails-1W37MKcQCpIf0INCOvqR/pqQE7yCjDx5@public.gmane.org
> Subject: Re:
2006 Apr 26
2
MASC = A New Way to Use Textmate Snippets
Just thought I''d announce this on the Rails list since I know several
of you use Textmate: there''s a new feature I''m calling "Multiple
Arbitrary Simultaneous Carets" or MASC for short, which is available
in my personal TM bundle. It''s been handy enough for me that I
thought others might enjoy it.
2007 Aug 04
2
How do you run an app on "edge merb"?
I didn''t quite see a direct answer to Matt''s question regarding
running merb from SVN:
http://rubyforge.org/pipermail/merb-devel/2007-July/000132.html
In a merb application, is there something comparable to having rails
in the vendor/ folder of a rails app?
Thanks,
Duane Johnson
(canadaduane)
2007 Aug 29
1
What makes Rails'' routes non-thread-safe?
I was reading here and there about the differences between Merb and
Rails [1] and became curious about statements such as this:
> It is threadsafe with configurable Mutex Locks (Routing is also
> threadsafe)
Having mucked with the routes system, I had this awful feeling that I
don''t understand threading well enough to know if my contribution is
"thread safe".
2006 Feb 19
3
"syncPeople on Rails" Bundle 0.7 Released
This has been such a fun project. Couldn''t keep myself away:
http://blog.inquirylabs.com/2006/02/19/syncpeople-on-rails-07/
== Summary ==
Easily navigate between ActionMailer models, views, partials,
controllers, helpers, javascripts and stylesheets with a single key
(keypad ''enter'') in TextMate. This release also adds an Enhanced
TODO List (ctrl-shift-t) and
2005 Oct 14
1
join tables and position (acts_as_list)
I''m working on some schema for a new project that we''ll be doing in
rails (our first rails project!).
A recurring structure we are seeing is the desire to define an
ordering any way we wish, so ''acts_as_list'' comes to the rescue.
But, the ''position'' column seems to need to belong in the join table
to make sense.
For example, we have
2006 Jan 14
0
habtm with acts_as_list vs. :through
Hi,
I am interested in has_and_belongs_to_many with an acts_as_list
relationship where the position field is in the join table. I found
the following tutorial
http://wiki.rubyonrails.org/rails/pages/HowToUseActsAsListWithHasAndBelongsToMany
Is there a newer way that is less complicated?
What about the :through parameter that I read DHH is writing? Is that
a reality yet?
Thanks,
Peter
2006 Feb 25
1
TextMate: syncPEOPLE on Rails Bundle Becomes Built-in Rails Bundle
It?s official, folks!
After talking with my partner, Greg Narain, as well as Allan Odgaard,
the creator of TextMate, we (syncPEOPLE) have decided to release our
Rails bundle under the MIT license so that it can nest itself nicely
within its new home, the TextMate Subversion Bundle Repository.
What this means for the rest of us is that all of these great
features we?ve been madly
2007 Sep 17
2
Why do we check for the controller file?
I remember having this discussion on IRC before, so Ezra if you could
remind me that would be appreciated:
Why do we check for the existence of the controller file in (what is
now) Request#controller_class?
The reason I ask is that I would like to implement some sort of
"Rails engine" like features for gem plugins--in other words, drop in
a gem that has controllers/views etc.
2006 Mar 09
11
syncPEOPLE on Rails TextMate Bundle 1.0 & Screencast
The 1.0 version of our bundle is now available for download, along
with a 10 minute demonstration of it in use. See http://
syncpeople.com/downloads.
== What is syncPEOPLE on Rails? ==
syncPEOPLE on Rails is a bundle of snippets, macros and commands for
TextMate that make Rails development on the Mac even easier.
Generate scaffolds, migrations, models and controllers from inside
the
2005 Jul 08
4
Browser compatibility goes back how far?
I asked this on the Rails list, but it might be more appropriate here.
When we''re estimating how many users would have access to our site if
we choose to use AJAX and script.aculo.us -style javascript, what
kind of percentage are we looking at? 50%? 75%?
Does this kind of fancy JS work on IE 5.0, or earlier?
Thanks!
Duane Johnson
(canadaduane)
2006 Apr 27
5
ColumnComments Plugin
Here?s a small plugin that may be useful for documenting your
database. Based on Dave Thomas?s AnnotateModels plugin, this plugin
goes one step further and allows you to store comments on each column
in the database (MySQL only).
Full write-up at: http://blog.inquirylabs.com/2006/04/27/
columncomments-rails-plugin
Subversion at: svn://syncid.textdriven.com/svn/opensource/
2006 Mar 22
10
Need for multiple acts_as_list
I have a model "Childmodel" that belongs_to two other models "Parent1"
and "Parent2". "Parent1" "has_many :childmodels, :order => :positionp1"
and "Parent2" "has_many :childmodels, :order => :positionp2". i.e. The
child is independently positioned within each of its parents.
This works fine and gets me the useful
2006 Jan 08
3
Family Connection 1.1.2
== What is Family Connection? ==
Family Connection is an easy-to-setup online hub for your family that
includes a Family News section with Photos, and an Address Book.
For more information, visit http://familyconnect.rubyforge.org/
== Downloads ==
Latest:
svn checkout svn://rubyforge.org/var/svn/familyconnect/trunk
Version 1.1.2:
svn checkout
2006 Jan 10
2
Is there a best practice in dealing with javascript dependencies?
As I''ve begun to work with several javascript libraries out there,
I''ve run in to some dependency issues that must have been solved by
others before.
For example, I''m trying to implement the jstree library from Laurie
Harper in to BundledResource. Breaking the ''jstree'' javascript from
the sample html out in to its own file caused it to fail
2007 Aug 31
2
New routing system has specs and examples
Check it out here:
http://pastie.textmate.org/92610
Let me know if you have any questions.
Duane Johnson
(canadaduane)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070830/c808d045/attachment.html
2005 Dec 31
4
How might I use file_column for incoming email attachments?
I''m writing a ''Mailman'' model that catches emails sent to my
application (kind of like backpack, I think). The trouble is that
I''d like to save image attachments in the same was that file_column
saves them--in fact, I''d really like to use a simple assignment like
photo.image = attachment to save the image in its proper place.
However,
2005 Dec 15
2
efficient INSERTS
Hi,
I''ve got the following models:
Company
Package
with a habtm relationship.
In my controller, I have a ''dispatch'' action which does the following
@companies.each do |company|
@packages.each do |package|
company.packages.push_with_attributes(package, :sent_on => Time.now)
end
end
my table ''companies_packages'' therefore lists which
2006 Feb 18
3
Controller to View and Back Again (TextMate shortcut)
One of the most inconvenient things about the Rails directory
structure is the relative distance between the controller and its
corresponding view files. While it?s organizationally sound, it?s
often a pain to go hunting for a view (especially in a complicated
application that has modules and modules within modules).
I discovered a fantastic little key-combo within TextMate the other
2006 Feb 11
9
Textmate Backtracer 1.0
Originally posted at http://blog.inquirylabs.com/2006/02/11/textmate-
backtracer-10/
== Announcing Version 1.0 ==
The backtracer has been around for a while now, and seems to have
done its job well enough to deserve a 1.0 mark.
== What Is It? ==
Whenever a Rails exception occurs, it spits out a backtrace full of
filenames and line numbers. I?ve often thought, ?Wouldn?t it be nice
if I