[Rails] Re: Active Scaffold on rails 3??

2010-07-06 Thread mrbana...@googlemail.com
Hi, at least there seems to be a fork: http://github.com/vhochstein/active_scaffold On Jun 11, 11:43 pm, Siva Kilaru wrote: > Hello guys, > > Do anyone know whether active scaffold works on rails3? > > If so..can someone give the documentation of it as well plz... > > Thank you dudes.. > > TC >

[Rails] Re: Ajax Form with Multipart File Upload in Rails 3.0

2010-06-28 Thread mrbana...@googlemail.com
Hi, you may take a look at: http://github.com/vhochstein/active_scaffold/blob/master/lib/responds_to_parent.rb I do not think its perfect but at least it s running for me. -- Volker On 26 Jun., 20:18, Sharkie Landshark wrote: > How would I achieve this? In Rails 2.x, I would use responds_to_p

[Rails] Rails 3 data-method vs _method

2010-06-24 Thread mrbana...@googlemail.com
Hi, I would like to know if and how new data-method attribute should work together with _method url parameter Please take a look at the following example: Delete A link to trigger action logic_delete and we should use REST delete method type. In Rails 3 with new UJS this will not work if javascr

[Rails] Re: Is there a way to obtain the body of the last render?

2010-06-01 Thread mrbana...@googlemail.com
What about response_body? -- Volker dave4...@greatchiro.com schrieb: > Is there a way to obtain the response body of the last render in > Rails3 beta3? > > For example, given: > render :action=>'aaa', :layout=>'bbb' > > I had thought something like @_current_render would work but it did > not

[Rails] Re: Element.insert_html is not function

2010-06-01 Thread mrbana...@googlemail.com
Hi, Please verify that all included javascript files get successfully loaded into your html page. -- Volker Santosh Dvn schrieb: > Hi > > I have created the application by following the railcast video > > http://railscasts.com/episodes/74-complex-forms-part-2 > > However I am getting this error

[Rails] Rails 3 UJS and delete action

2010-05-31 Thread mrbana...@googlemail.com
Hi, I ve got a question concerning delete actions in the new rails 3 world with unobtrusive javascript. How may I perform an "ajax" delete in a list of products. if attribute data-method is specified rails.js handleMethod is called, which adds csrf params into a hidden form and form.submit is ca

[Rails] Re: ActiveRecord 2.3.3 in_or_equals_for_ids exception

2009-09-29 Thread mrbana...@googlemail.com
Worked around that issue by using :offset, :limit in find call... Just in case anybody else is running into this issue. On 29 Sep., 09:07, "mrbana...@googlemail.com" wrote: > Hi, > > Oracle Database using ActiveRecord 2.3.3 is throwing an exception when >

[Rails] ActiveRecord 2.3.3 in_or_equals_for_ids exception

2009-09-29 Thread mrbana...@googlemail.com
Hi, Oracle Database using ActiveRecord 2.3.3 is throwing an exception when performing a find call. OvaSchedule.find(:all, :include => [:ova_program]) The root cause seems to be the following: in file: association_preload.rb method "in_or_equals_for_ids" is generating a sql IN condition. However,

[Rails] subclasses_of different result in second call

2009-09-21 Thread mrbana...@googlemail.com
Hi, I m using the following code to get all submodels of an sti model: Dir.glob(RAILS_ROOT + '/app/models/*.rb').each { |file| require file} sub_models = Object.subclasses_of(sti_model) That works perfect in my dev environment (Rails 2.3.3) during the first request, after I ve started my webric

[Rails] Parse rss feeds with multiple enclosures per item

2009-05-15 Thread mrbana...@googlemail.com
Hi, Does anybody know how I may parse an rss feed with multiple enclosures per item. I ve tried the ruby build in rss class, but that one only seems to support one enclosure per item? Thanks a lot in advance... Volker --~--~-~--~~~---~--~~ You received this messa

[Rails] Re: ActiveRecord Oracle and nvarchar2 or nclob datatype

2008-12-15 Thread mrbana...@googlemail.com
Just in case somebody is facing this issue as well... It seems that ActiveRecord is not handling oracle nvarchar2 column types correctly. If somebody is facing my issue: Please find beloa the code for a fix Many thanks to the oci adapter engineer who did the main work for it. module ActiveReco

[Rails] ActiveRecord Oracle and nvarchar2 or nclob datatype

2008-12-05 Thread mrbana...@googlemail.com
Hi, I ve got oracle database which exists prior to my rails app... :-( I ve got trouble when I am updating/inserting records of a table which includes nvarchar2 attributes. These have a specific maximum length. I often get an error Value too long for column when doing my inserts/ updates, but i