Displaying 18 results from an estimated 18 matches for "aasm".
Did you mean:
asm
2010 Jul 15
3
aasm manage states
Is there a way to manage the states in AASM by keeping them in a table
to normalize the data?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this gr...
2009 Oct 31
1
How to changing a AASM state using a Edit Action+Form View?
Hello there,
I''m using AASM to manage states in my User model.
I want to change the status through the edit action.
To do this I''m using the method User.aasm_states_for_select in my form
to populate the select input for states.
When I hit the button commit all the changes are saved, including the
state name. But the...
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 there was a Wiki page on github with t...
2010 Nov 22
0
aasm code into module
Is it posible to move big aasm code into a module and then include it
into a class and it work correctly?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To...
2009 Mar 03
2
Looks like a bug - Ruby1.9.1Rails2.3.0 - script/plugin
...Active Resource version 2.3.0
Action Mailer version 2.3.0
Active Support version 2.3.0
Application root /Users/rick/plugin-git
Environment development
Database adapter sqlite3
Database schema version 0
2) script/plugin install -v git://github.com/rubyist/aasm.git
Plugins will be installed using http
Plugin not found: ["git://github.com/rubyist/aasm.git"]
#<TypeError: can''t convert Array into String>
I rattled around in lib/ruby/gems/1.9.1/gems/rails-2.3.0/lib/commands/
plugin.rb for awhile with the blunt tool of "puts thin...
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
....1, 1.2.0)
rmagick (2.9.0)
rubigen (1.5.2, 1.4.0)
ruby-debug (0.10.3, 0.10.2)
ruby-debug-base (0.10.3, 0.10.2)
ruby-debug-ide (0.4.6, 0.4.5, 0.4.4, 0.4.3, 0.4.2, 0.3.1)
ruby-prof (0.7.3, 0.7.1, 0.7.0, 0.6.0)
rubyforge (1.0.3, 1.0.2, 1.0.1, 1.0.0)
rubygems-update (1.3.4, 1.3.3, 1.3.1, 1.3.0)
rubyist-aasm (2.0.5, 2.0.4, 2.0.2)
sources (0.0.1)
sqlite3-ruby (1.2.1)
syntax (1.0.0)
test-unit (2.0.2, 2.0.1, 2.0.0)
win32-api (1.4.2, 1.4.0, 1.3.0, 1.2.2, 1.2.1, 1.2.0)
win32-clipboard (0.5.1, 0.4.4)
win32-dir (0.3.4, 0.3.3, 0.3.2)
win32-eventlog (0.5.0)
win32-file (0.6.1, 0.6.0, 0.5.6)
win32-file-stat (1.3....
2008 Sep 16
1
config.gem vs require 'somegem'
I am very confused by the config.gem statement in 2.1
If I put config.gem ''pdf-writer'' in my environment.rb I get the
following error when I try to instanciate a PDF object in my
controller with the statement pdf = PDF::Writer.new
uninitialized constant CollectionsController::PDF
so I try putting require ''pdf/writer'' in my environment.rb and the
application
2009 Mar 26
0
acts_as_versioned and qa
Hi,
I have Article model and it has aasm_column qa, that is initially
"pending".
In order to get it reset qa column on new versions, I have made:
def set_new_version
write_attribute(:qa, "pending")
end
But now the aasm methods are also triggering the new version, dispite:
self.non_versioned_columns <&l...
2010 Dec 10
2
has_many, conditions overrride
I have a prod site that has:
has_many :data, :conditions => {:aasm => ''active'')
I do not want to modify it as I do not want to break existing
functionality
Is there a way to overrride this at runtime?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, s...
2011 Nov 22
7
rake aborted with ruby on rails
when i run * rake db:create*
*
*
WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require
''rdoc/task'' (in RDoc 2.4.2+)'' instead.
at
/home/vishnu/.rvm/gems/ruby-1.8.7-p352-D9TI4Ms3gBgeRYYz77F+sQ@public.gmane.org/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
DEPRECATION WARNING: Rake tasks in
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and
acts_as_statemachine
In the create method for a user there is the following code generated
by the restful_authentication template
@user.regster! if user.valid?
And this will save and the user record if it is valid. I understand
that the statemachine will then change the state from passive to
pending. It will guard
2011 Jul 21
4
Validation depends on Controller
I know in the model we can add validations. But how about if I need
different validations depending on the controller.
For example...
1) if the User is being created from the accounts controller, I want to
REQUIRE the username be entered.
2) if the User is being created from the users controller, I want to NOT
REQUIRE the username.
validates_presence_of :username, :on => :create requires the
2010 Dec 08
1
configuration issue (Uninitialized constant Aftimagr (NameError) )
...resolved this..... it''s urgent
ruby script/server --debugger
=> Booting WEBrick...
=> Debugger enabled
config.gem: Unpacked gem rspec-rails-1.1.11 in vendor/gems has no
specification file. Run ''rake gems:refresh_specs'' to fix this.
config.gem: Unpacked gem rubyist-aasm-2.0.2 in vendor/gems has no
specification file. Run ''rake gems:refresh_specs'' to fix this.
config.gem: Unpacked gem capistrano-ext-1.2.1 in vendor/gems has no
specification file. Run ''rake gems:refresh_specs'' to fix this.
config.gem: Unpacked gem ruby-openid-2.1....
2009 Jan 12
5
Restful Authentication Uninitialized Constant in Production...
rake db:migrate RAILS_ENV=production
rake aborted!
uninitialized constant User::Authentication
The preceding I encounter when attempting to migrate to the production
database. My google powers have escaped me. Everywhere says Restful
Authentication is missing in the production server. However, to
validate this, I attempted this on the same server as the development,
which works.
So, what
2010 Dec 08
1
Help on install act_as_ferret on windows XP
...rack (1.2.1, 1.1.0)
rack-mount (0.6.13)
rack-test (0.5.4)
rails (2.3.8, 1.2.3)
railties (3.0.1)
rake (0.8.7)
refinerycms (0.9.7.12)
refinerycms-news (0.9.8.3)
refinerycms-portfolio (0.9.7)
rest-client (1.6.0, 1.4.2)
restfulx (1.3.0)
rmagick (2.12.0 mswin32)
rubigen (1.5.5)
rubyforge (2.0.4)
rubyist-aasm (2.1.1)
rubyzip (0.9.4)
selenium-webdriver (0.0.28, 0.0.27)
sqlite3-ruby (1.3.2 x86-mingw32, 1.3.1 x86-mingw32)
term-ansicolor (1.0.5)
thor (0.14.3)
treetop (1.4.8)
trollop (1.16.2)
tzinfo (0.3.23)
will_paginate (2.3.15)
I already follow the topic
http://www.ruby-forum.com/topic/153349#729201, b...
2009 Feb 09
9
fastercsv, freezing into vendor/gems
I''m using fastercsv such that in my rake file I''m doing this.
require ''fastercsv''
It works fine on my Mac.
I need to freeze this gem into the app though so my rake tasks work on
the production machine.
-----------
I spent about two hours though this weekend trying to get this Gem
"frozen" into the vendor/gems folder. I tried all sorts,
I ...
-
2006 Mar 05
8
workflow support in Ruby on Rails
Hello,
I am relativley new to Ruby on Rails and am still in the process of enjoying
the features it offers. I wanted to know if theres workflow support in
rails. Can some one give me pointers if its possible.
Thanks
Naveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060305/43c9abc3/attachment.html
2010 Mar 04
25
how to share variables in data migrations (up/down)
hi there,
How do we share variables in a given data migration?
For example,
the code below fails to work because "statuses" don''t seem to be in
scope for both up and down.
class AddDefaultValuesToStatuses < ActiveRecord::Migration
statuses = [
{
''details'' => ''details'',
},
{