Displaying 20 results from an estimated 2000 matches similar to: "Design / Pattern / Scaffold for has-and-belongs-to-many ?"
2006 Jul 18
2
2-column select lists (Available/Selected)
I''m trying to get one of those 2-column select lists (where there''s an
"Add>>" and a "<<Remove" button between them) working for a Rails
application. First of all, what the heck is this thing called?
You''d list all of the available items in one select list, and the
selected ones in the other.
Items move from one list to the other, but
2006 Jan 09
3
Custom flash[:notice]
For the most part, my
flash[:notice] messages fall into one of two categories: either a
message stating that something happened successfully (which is colored
green), or messages showing errors (which I would like to be red).
Is it possible to set some sort of flag on these messages to choose
which color I want to show, or would I need to base it on CSS and set
the class in the text, i.e.
2006 Jan 25
14
Salted Hash Login Generator
Does this work with rails 1.0 ? I saw that people said it failed with rails 14.1, which
practically identical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060125/5da24694/attachment.html
2005 Dec 29
1
Best way to prune my list of returned rows?
Every example and tutorial I can find shows how to create and paginate a
list of rows returned from a table. But I''m trying to write an
interface on top of an existing table with 4million rows. So I need to
jump right to the lesson on searching my data. That, I can''t find.
Can somebody tell me the techniques available for pruning down my list a
bit? I found a
2006 Feb 01
2
Need clarification for Rails Engines SVN repository
Hi all !
Could someone tell me what''s what in the Rails Engines Subversion
repository ? There are many folders where the Rails Engine is
located, and from the folder names alone, I can''t really guess what''s
what.
For example, the rails engine plugin is situated at:
plugins/engine
engines/trunk
branches/engines
branches/edge_engines
From the log, I gather
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
I have the following 3 models (2 models joined by an intermediate):
1. class Exercise < ActiveRecord::Base
2. has_many :routines, :class_name=>''RoutineExercise''
3. end
1. class Routine < ActiveRecord::Base
2. has_many :exercises,
3. :class_name=>''RoutineExercise'',
4. :order=>''position''
5. end
1. class
2006 Apr 05
23
how to create RJS visual effects callbacks
I''m trying desperately to get visuall effects callbacks working in rjs
templates to no avail What I''m trying to do is fade an image, change
the div with the image to a new image, and then fade the new image back
in. How would I go about this in RJS Here''s a simple line from my rjs
that I can''t get to work. It is not using callbacks so the
2006 Mar 22
4
How to write this SQL query?
Hi!
Is there rails version of "where column in (value1, value2, ...)"?
I know i could do OR many times, but this way is shorter.
I''m ruby/rails newbie, so i have a problem with converting the hash,
which i''m receving from the search form into the string for :conditions
in find method.
Could i instead of creating one, complicated (for me) query do something
like
2006 Jan 23
3
2 Open RoR Positions - Denver, CO
Ping Identity Corporation, a mid-sized identity solutions company, is
currently looking for 2 contractors (3+ months w/option to hire at
contract end) to assist in developing and extending our internal
corporate application platform. This internally-developed platform
drives most aspects of our company, from sales leads to support to
applications that assist in day-to-day operations. We are
2006 May 02
16
no one cares about i18n (was [OT]: Asking questions on this list)
Do most others in the community agree with this statement? It seems to me
that i18n is:
1. Actually important to many people
2. Not really the difficult to implement in concept
3. Something that people like to point out about Rails to say it''s not
ready foir "Enterprise"
It seems to be that a big part of Rails is encouraging people to do things
the "Right Way",
2006 Jan 08
10
rCalendar Project
Railoholic-Anonymous Members:
I am tooling around with the idea of forming a project which would
create a calendar plugin/engine with the following features:
1. DB schema mapping all necessary iCal (RFC-2445) fields.
2. Probably utilizing either vpim (vpim.rubyforge.net), or iCalendar
(icalendar.rubyforge.net). (First choice would be vpim since some
attendee functionality requires vcard
2006 Jul 26
4
How to Install Engines?
I am trying to get this enginer to work....and I am not sure how to
install the engine? could someone please give me some instructions with
regards to this....
http://rails-engines.org/wiki/pages/DateboxEngine
for example in the website above
The Engines plugin or the EdgeEngines plugin
* Engines 1.0
script/plugin install
http://opensvn.csie.org/rails_engines/branches/engines/
*
2006 May 02
3
Writing tests for plugins
I''ve been googling around trying to find some tips on creating tests for
plugins. Am I correct in assuming that I''d have to have the tests as
part of a rails app in order to test the plugin? I''d like to find a way
to do standalone tests for the plugin.
--
Posted via http://www.ruby-forum.com/.
2006 Jan 09
5
file_column content type
is there a way using the file_column plugin to enforce a certain
content type based on regex (i.ie, /^image/) and/or filesize (150k)
?
thanks
adam
2005 Dec 29
2
Login plugin
All-
I am new to Ruby; following are my two questions:
1. Which is the best login plugin? I keep hearing about SALT and
loginengine.
2. For installing loginengine; I see the two following steps - Both
these does not work for me. :
$ script/plugin install login_engine
==I am getting "script/plugin is not a internal or external
command, operable program or batch file"
2006 Jun 07
2
Making an HTTP request to an external machine
During one of my controller actions I want to call an external machine
before I do anything. It''s not a real web service, more like a
REST-style thing where I''ll just be tweaking a servlet running on
another machine and sending it some data.
Does Rails give me anything to work with for doing that? I read the web
service stuff but it''s overkill for what I need. I
2006 Aug 05
2
acl_system2 undefined method `access_control''
I''ve installed acts_as_authenticated and have that working like a charm
and now would like to add the acl_system2 plugin so I can do some role
based authorization stuff.
I went ahead and installed the plugin like this:
>ruby script\plugin source http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2
Then I installed the lib and test
>ruby script\plugin install lib
>ruby
2008 Apr 07
2
Simple active record issue. I must be missing something.
Here''s a seemingly simple ActiveRecord use case. I have Projects and
Users. Each project has a single team leader as well as a review team
that consists of several users. I would like to use the same User
model for authentication and just reference these users in my Project
model.
I tried this but got an "unknown column" error (for User.project_id)
class Project
has_one
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
2006 Jan 30
2
Modules, controllers and inheritance
Hi!
I was trying to cleanup my app and I runned into quite a problem. My
controllers in submodule do not seem to inherit things from base
class.
I have following setup:
app/controllers/
application.rb:
class ApplicationController
admin/
admin_controller.rb:
class Admin::AdminController < ApplicationController
include LoginEngine
include UserEngine