Displaying 20 results from an estimated 300 matches similar to: "Making requests in order"
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from
http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine
as this site is down and script/plugin discover is broken as it fails
when trying to add plugin repositories giving the message as below;
Add http://svn.northpub.com/plugins/? [Y/n] y
(eval):3:in `each'': undefined method `[]'' for
2006 Mar 23
5
Dirt simple .rcss templates
There was some discussion on this list recently about doing .rcss
templates in Rails using a custom template handler. I''ve come up
with a very simple way to support rcss without a handler. Turns out
all it takes is a route and an action that calls render(:file...). I
put a full write-up on my blog earlier today:
2007 Jul 07
4
Setting a callback whose action depends on the previous state of the object
I''ve been reading about ActiveRecord::Callbacks and they''re really
cool. But I have a complex need I''m not sure they answer.
Let''s say we have a User model. User has a #status attribute, which
can be either "active", "closed" or "blocked".
I want to set a callback to perform an action if an "active" User has
been
2006 Feb 02
6
How do I? Same Model, Different Controllers, Different Validations?
Hi all --
The simple question is: How do I set different validations for the same
Model, when accessed in different Controllers?
Here''s the scenario: I have a store/cart app, with a customer-facing
shopping cart, and a typical Admin side. The Admin side also has an
Order Entry component, where our staff can enter orders received by fax,
telephone, etc. Both the customer-facing cart
2006 Mar 03
7
Workflow + Rails
Is there any project or solution for an easy integration of a WFE / WfMS
into rails? I''m quite new to this topic, but I probably need a small
subset of workflow patterns (or whatever the correct term is) only. Any
pointers are welcome.
--
Posted via http://www.ruby-forum.com/.
2005 Oct 06
5
webrick seen only on local machine
I am running the webrick server (/script/server) and I would like to be
able to view the application from any browser. However, I can only see
my application from a browser opened up on the localhost. When I use
any other browser it times out. I have already modified the following
line in the /script/server file (I''ve tried the numeric ip address also)
so that it is the real ip
2005 Oct 03
3
WriteBoard for Programmers? (code support)
Anyone think it''d be useful to make a WriteBoard type application
that supported ruby, html, etc. and allowed programmers to
collaborate on writing scripts or just code in general and track each
others changes? Just a thought.
- Jim
2005 Sep 19
5
switchtower beta gem?
would it be possible to get another beta gem posted for switchtower?
core rails has been getting nice regular updates to the beta gems, but
switchtower is still back at 1962.
2006 Aug 02
10
Ruby deamon
We are building a web-based application with Ruby on Rails and MySQL
backend. The client now wants us to add various workflow features that
will eventually expand into SOAP web services.
These workflow features include tasks such as automatically sending
reminders for due tasks, or if a particular set of information hasn''t
been logged by a certain time to automatically send an email
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain
to Ruby and Rails? I am assuming they are stored in or can be exported
to some kind of plain text file...
Sadly I am not yet able to make the leap from Linux (and Windows) to a
Mac and I am using Slickedit, which has *zero* built in support for
Ruby/Rails. I can add macros and code templates so I thought it might be
2005 Dec 18
3
automatically generate migration from db/SQL?
Hi,
I''d like to use migrations to build my initial database. Is there a gem
or plugin that will generate the migration code for initial db if I
point it at a live database or sql file?
If yes, then can you automatically generate the incremental migrations
as well?
Thanks,
Jason
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
I''m new to this list, I''m a student in History, Computerscience and a
bit of Philosophy from the Netherlands... I have started using rails a
few weeks ago, I did read the Agile Webdevelopment with Rails book, and
I generally started to love Rails for it''s sheer beauty and intelligent
structure...
However I came across something that puzzles me quite a bit. It''s
2005 Dec 07
3
ActiveRecord::Observer problem
Hi all,
I have a problem with an observer. I have a simple observer...
class ActivityObserver < ActiveRecord::Observer
observe Customer
def after_create(model)
bind_params(model)
@al.action = "create"
@al.save
logger "#{model.id} : created"
end
private
def bind_params(model)
@al = ActivityLog.new
@al.user_id = User.current.id
2006 Jun 22
1
Ruby & Rules Engines
Hi, is anyone aware of a planned or available rules engine which works
with Ruby? Something like Drools & Java (forward chaining).
Thanks for all your help
--
Posted via http://www.ruby-forum.com/.
2008 Jan 07
2
acts_as_state_machine override :initial state
Hello,
I''m not sure if this is where to post this, but i cannot find much
information/support for acts_as_state_machine.
I have a Friendship model which implements acts_as_state_machine. I
have an :initial state of :pending, but i would like to create a
Friendship model and save it directly with :accepted status.
I have tried Friendship.create(:state => "accepted") and
2008 Feb 28
2
random exception driving me crazy: SecurityError (Insecure: can't modify array)
Hi all, I''m running into a very strange but incredibly annoying
problem that I just can''t seem to solve.
The exception is occurring from a seemingly innocuous line in my code,
a simple ''logger.warn("some debug information")''. The backtrace
follows:
SecurityError (Insecure: can''t modify array)
2006 Jul 13
2
having a problem with acts_as_state_machine
Hi all:
Below is s a dump from script/console in development env.
Am I not supposed to be able to find the record later and use the
state machine functionality, or have I missed something? Thanks
Forrest
----------------------------
>> ts2 = TalkSession.create( :person_id => 2, :pattern_id => 2)
=> #<TalkSession:0x35811f0 @attributes={"pattern_id"=>2,
2008 Jan 23
1
acts_as_state_machine doesn't error on invalid state transition?
While using acts_as_state_machine, I noticed it doesn''t error when invalid
state transition is used. No false return, no exception. By invalid state
transition, I mean utilizing an event that does not define the current state
as a ''from'' state. Does anyone find this lacking? I would like to be able
to catch invalid state transition (such as attempting to fulfill a
2008 Aug 25
1
acts_as_state_machine: SecurityError calling insecure method
(also posted on rails forum:
http://railsforum.com/viewtopic.php?id=21744, then I discovered this
lilst and there are many more people...)
Hi, since yesterday I suddenly recieve lots of such messages in my
logfiles - and everything in the user model that uses that plugin fails!
My deployed Rails code hasn''t changeed in 5 days, and those errors
started to appear only a day ago.
2008 Oct 28
7
aasm callback order?
Hello!
Sometime ago I ran across a webpage where someone had identified the
full callback sequence for an object lifecycle including AASM with
it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t
find it and searches don''t seem to help.
Does anyone have a reference to a page that shows the callback
sequence with Acts As State Machine (the gem)?
I think