Displaying 20 results from an estimated 100000 matches similar to: "aasm code into module"
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 group, send email to
2010 Apr 14
4
module/class question
Are these two below the same thing?
1. module X
module Y
class Z
2. class X::Y::Z
--
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 group, send email to
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, send email to
2013 May 29
2
Why can't get remote javascript libraries on Rails 4
In rails 3, I included this line:
*<%= javascript_include_tag
"http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js" %>*
But when migrate to rails 4, its not posible and I get the next error:
*Invalid argument -
C:/Ruby193/findiner/app/assets/javascripts/http://cdn.leafletjs.com/leaflet-0.5.1
*
So far, I won''t be able to get remote libraries. Thanks for help!
--
You
2010 Dec 08
1
Help on install act_as_ferret on windows XP
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1, 2.3.8, 2.3.2, 1.15.6, 1.15.3)
activeresource (3.0.1, 2.3.8)
activesupport (3.0.1, 2.3.8, 2.3.2, 1.4.4,
2010 Nov 11
1
mongrel_rails logger
I have a live site that has a mongrel_rails instance running. When I
see the process is shows that is has the -e production value set. I
am not seeing any logger info in the production log. Ideas?
--
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
2010 Dec 08
1
configuration issue (Uninitialized constant Aftimagr (NameError) )
Hello All
I am getting this error, any one 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
2010 Jun 16
2
class methods from module where active rec is involved
I have a module as shown below and when I extend an active record to
use it, I can not access the
primary_key method. In a simple test program using a similar approach
where active record is not involved, access to the class methods seems
to work ok. What can I do to make this work or so that I can access
the class methods ?
##################################
require
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
2013 Jun 21
3
[HELP ] Call java code / method from Ruby programming
Hi All ,
I have written java code ( This java code will not return any thing but
it will do action ) which is required call from ruby , please let me what
is best way to achieve this ?
Thanks ,
Muthu Selvan SR
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from
2010 Dec 20
11
rails code to sql
Is there a relatively easy way to do this code in sql?
@categories=Category.all.reject{|n| n.blank?}.sort{|a,b| a.name
<=>b.name}.collect{|t| [t.name,t.name.downcase.gsub('' '',''_'')]}
--
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
2011 Mar 10
10
JS data to rails view helper
I have a view helper like ryan bates complex forms task helper, rails
2.2.2. Anyway is there a way to send the value selected in a select menu to
the helper? I am trying to do stuff without going back to the server.
<%= select_tag :discout_code, options_for_select(@discount_codes)%><%=
add_exclusion_date_link(''Add Existing'', JS ) %>
--
You received this
2010 Oct 07
1
checking Ruby Code
I have recently acquired a web company and it was built in Ruby. Not
sure which version it was built in and I am unsure if the code is in
workable condition. When I try the SVN credentials and I get the
trunk error, does this mean that the SVN credentials are still working
and still access the code/site? Any help would be much appreciated,
Thanks,
jon
--
You received this message because you
2013 Sep 19
0
problem with change Model url for rails_admin
i wont to change url name of model in rails_admin
example i have model Help and
*url : /admin/help/ *
now i wont to change name of url to
*"/admin/customerHelp"*
so how can it be posible to change in rails_admin.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving
2011 Mar 06
2
Can JRuby be used to "compile" or "encrypt" code?
Coming from PHP, I''m used to seeing things like Zend Encoder that can
take PHP and pseudo-compile it, obscuring the source (useful in the
event you want to sell a product written in said language). I haven''t
found a direct equivalent with Ruby (though if you know of one I''d
like to hear about it), but it occurs to me that JRuby might be used
to do something similar.
2012 Dec 16
3
Running code in another controller action
I am doing a partial render in the view from one controller. Here is the
code -> <%= render :template => ''restaurants/new'' %>. I want the other
controller new action code to do it. Is there a way to call an action in
another controller ? I don''t want to duplicate the same code in two
controllers.
--
You received this message because you are
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
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 AASM event for that state is not called, it is
happening
2011 Jun 23
2
getting twitter followers into our rails application
Hi everybody,
I have integrated OAuth into my app. Now I want to get the follower
lists for the user who has authenticated using OAuth.
My app works on ruby on rails. And i want to know how i can fetch the
followers list for the current logged in user.
Can someone tell me if they have done it before?
thaks
+++++++++++++++
Pravin Mishra
--
You received this message because you are subscribed
2011 Aug 15
2
Delayed_Job: code working fine without .delay / with .delay it fails. Why?
Hi all,
I wrote a simple code to set up the "pit_id" from a village table from
1 to 2, from 2 to 3 and so on.
It works fine without .delay . But i need it so whats wrong with that
code?
#village_controller
def post_info
@village = Village.find(params[:id])
@village.delay.upgrade
flash[:notice] = "Upgrading"
redirect_to village_url(@village)
end