[Rails] ArgumentError (Before process_action callback has not been defined)

2019-01-08 Thread AJ
I am updating from rails `4.1.7` to `5.1.5` and ruby `2.1.2` to `2.5.3`. I have been reading the rails upgrade guide , but I'm having an issue that I might not fully understand what is going on or have missed something somewhere. I

[Rails] gem install rails ERROR

2013-05-22 Thread AJ Acevedo
This should help: http://railsapps.github.io/installing-rails.html -- 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 it, send an email to

[Rails] Nesting modules inside of a Rails eninge gem

2013-05-02 Thread AJ Acevedo
What is the proper syntax to nest child modules within a parent module that is being as an isolate_namespace Rails engine gem? # lib/myengine/engine.rb module MyEngine class Engine Rails::Engine isolate_namespace Myengine # def ... end end For example. The parent module is MyEngine

[Rails] Re: Country State City using AJAX

2012-05-03 Thread AJ
Hi Hassan, I am Bit of a novoice to this.. iam nt sure wether this is correct approach...in my application.js file i have wriiten $(document).ready(function() { $(#client_country_id).change(function() { $.ajax({ type: GET, url: '/states/1', success: function(data) { // Code } });

[Rails] Re: Country State City using AJAX

2012-05-03 Thread AJ
for your help.. On Thu, May 3, 2012 at 5:03 PM, Aziz Bookwala aziz.bookw...@gmail.com wrote: Hey AJ Yes, to serve any request made by your client, you would need something on the server to handle the request. As for rendering the dropdown, this is a pretty simple thing to do

[Rails] AJAX and Jqery

2012-05-02 Thread AJ
in advance AJ -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options

[Rails] Re: AJAX and Jqery

2012-05-02 Thread AJ
Thanks a lot...that really worked like magic On May 2, 5:21 pm, Lauro Caetano laurocaeta...@gmail.com wrote: This is a good resource:http://railscasts.com/episodes/240-search-sort-paginate-with-ajax 2012/5/2 AJ akshar.jamgaon...@gmail.com Hi iam trying ti implement a simple

[Rails] Country State City using AJAX

2012-05-02 Thread AJ
HI , I have a state and country drop down in my client form and i want that state to be populated when a country is selected, How ever iam struggling on it... i dont want to implement plain JavaScript but AJAX for this, please let me know any resources or the rite direction.. Thanks in Advance

[Rails] date_select always displays current day

2011-11-16 Thread AJ Chen
In my model, birthday is of type Date. The following date_select field always displays the current day in the browser even though :birthday has a different value. Any idea? %= date_select(:profile, :birthday) % thanks, aj -- You received this message because you are subscribed to the Google

[Rails] Re: date_select always displays current day

2011-11-16 Thread AJ Chen
thanks. that works. -aj On Nov 16, 12:45 pm, Craig White craig.wh...@ttiltd.com wrote: On Nov 15, 2011, at 9:08 AM, AJ Chen wrote: In my model, birthday is of type Date. The following date_select field always displays the current day in the browser even though :birthday has a different

[Rails] RoR view question: pre-selecting radio box

2011-07-08 Thread aj
Hello all, I'm fairly new to rails. I have a view question that involves, I presume, javascript. I have two images, one is a LIKE and one is a DISLIKE image. I want to have one selected by default, the value of which gets saved to the DB when the user hits the POST button. Along with selecting a

[Rails] Help choosing gems for new project

2011-05-24 Thread aj
Hi everyone, I'm new to RoR and looking for help choosing gems for a website I'm building. I looked at the guide here: http://intridea.com/2011/5/13/rails3-gems but was hoping someone could give me more specific help. I want a basic image upload and thumbnail creator tool. I've looked at the

[Rails] Re: Multiple associations with to_json

2010-07-07 Thread Aj Oneal
I finally came back around to playing with this. A very important thing to note is that you get the same error message whether you do it completely wrong or if you just pluralize your models wrong. In this example A Customer has many cars; A Car belongs to exactly one customer A Car has many

[Rails] Re: Multiple associations with to_json

2010-04-21 Thread Aj Oneal
So you're telling me that the solution to the problem is this simple? model_name.to_json( :include = [ {:arbitrary_name_1 = {:assoc_1 = params} }, {:arbitrary_name_2 = {:assoc_2 = params} } ]) Ugh... why isn't that in the documentation!? I'll have to give it a try sometime. -- Posted via

[Rails] Re: Controllers not passed as a parameter causing an error

2010-03-02 Thread Aj Banda
impossible. For me to make it work again, I usually kill all dispatch.fcgi process. I just hope you or someone can help me figure out this problem since this one is urgent..:( Thanks, Aj kannav rajeev wrote: See on the database is there is any row with out id if not then pass id to controller

[Rails] Re: Multiple associations with to_json

2010-02-19 Thread Aj Oneal
Multiple json inculded associations without parameters model_name.to_json( :include = [ :assoc_1, :assoc_2 ]) Works Multiple json inculded associations with parameters model_name.to_json( :include = [ {:assoc_1 = params}, {:assoc_2 = params} ]) Fails Multiple json

[Rails] How to add a route to the method 'options' for each controller?

2010-01-11 Thread AJ ONeal
'] = 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept' end AJ ONeal -- 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-t...@googlegroups.com. To unsubscribe from this g

[Rails] Change default method mappings?

2010-01-11 Thread AJ ONeal
Currently these mappings are established somewhere, but I haven't found it :get = 'index', 'show' :post = 'create' :delete = 'destroy' :put = 'edit' In particular I want to add :options = 'options' AJ ONeal -- You received this message because you are subscribed to the Google Groups "

[Rails] 501 and 405 slightly inaccurate?

2010-01-11 Thread AJ ONeal
be better for a method which will be implemented in the future and that 405 (access related) should signify that the option was considered and decided against. AJ ONeal -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this g

[Rails] When and Where does is the Method Override parsed?

2009-11-28 Thread AJ ONeal
{ \question\: { \question\: \Is Override the Answer?\, \url\: \put_override\ }} Any hints for me? I'm using rails 2.3.3 AJ ONeal -- 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-t

[Rails] Re: When and Where does is the Method Override parsed?

2009-11-28 Thread AJ ONeal
I lied, the first one just doesn't return an error, but it doesn't work either. AJ ONeal On Sat, Nov 28, 2009 at 11:45 AM, AJ ONeal alvin.on...@gmail.com wrote: I'm trying to figure out when and where the method override is parsed and dealt with. This works curl 'http://www.whatsayye.com

[Rails] I can't PUT or DELETE JSON, where do I look?

2009-11-27 Thread AJ ONeal
and the message body. Where should I attack this beast at? AJ ONeal Working Examples: curl 'http://www.whatsayye.com/questions.json?callback=jsonp12345' \ -X POST \ -H Content-Type: application/json \ -H Accept: application/json \ -d { \question\: { \question

[Rails] Re: background process with ruby on rails

2009-07-29 Thread Aj Oneal
I'm trying to do the same thing. Have you figured this out? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ 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