[Rails] calling java application (BIRT) from rails application

2012-10-25 Thread Rahul Kumar
How to call java based application (BIRT) from a rails application . pLease help.Do I require RJB or Jruby or is there any other way to get this thing done . please can you explain in detail. please help -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Error while embedding ruby code in fullcalendar jquery to display events

2012-10-25 Thread ruby rails
I am trying to display events on my fullcalendar. In my controller I am getting an array of events. But I need to loop it and render it in view page as events array. When I try to do loop it I am getting some syntax error on which I have spent around 3-4 hours and couldn't figure it out. Please

Re: [Rails] validation check

2012-10-25 Thread Colin Law
On 24 October 2012 22:01, Werner Laude webagentur.la...@googlemail.com wrote: Am 24.10.2012 um 22:32 schrieb Colin Law clan...@googlemail.com: Hi Colin.. Please don't top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks.

[Rails] Re: My first database model - would you look at it pls?

2012-10-25 Thread Kevin McCaughey
Thanks a lot guys! I really appreciate the help. I don't have 1000 users yet as I am out of work, but this system is something I was inspired by a work problem, and I hoping it gives me enough experience to maybe get a junior programming job once I am finished. I was a programmer some years

[Rails] Re: My first database model - would you look at it pls?

2012-10-25 Thread Kevin McCaughey
*Please excuse my bad typing in the previous post - just getting my first coffee of the morning before starting learning again and my brain is still asleep ;) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] JQuery-File-Upload Button dependencies

2012-10-25 Thread akvarel
I am using this application examplehttps://github.com/tors/jquery-fileupload-rails-paperclip-exampleand try to model it to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of start button in order to prevent single-file upload (I dont want it), but it seems

[Rails] Uniqueness and sql serialize

2012-10-25 Thread Filipe Giusti
Hi fellow programmers, I was looking for how to keep integrity in some financial transactions and I saw this This could even happen if you use transactions with the ‘serializable’ isolation level. in the uniqueness page

[Rails] How to consume HTTP Streams/Chunk requests in Rails

2012-10-25 Thread Frank
Hi all, Can't seem to find out how I can process an http chunk request (like the twitter fire hose stream) from within a rails app, server side. Can anyone point me in the right direction? Tried to connect using Net:HTTP but never received a response from the end point. Thank, Frank --

[Rails] [Rails 3.2.8] ActiveSupport::BufferedLogger extension, undefined_method

2012-10-25 Thread Erwin
I tried to extend it , with this class , loaded at config time : config.autoload_paths += Dir[#{config.root}/lib, #{config.root}/lib/**/, #{config.root}/app/inputs] lib/extension.rb class ActiveSupport::BufferedLogger def detailed_error(e) error(e.message) e.backtrace.each{|line|

[Rails] Re: calling java application (BIRT) from rails application

2012-10-25 Thread Erwin
I guess BIRT java app already has a javascript API you can call from your Rails-Ruby app someone already worked it : see : https://github.com/casp/Birt-library-for-Ruby this guy may help you Le jeudi 25 octobre 2012 09:34:17 UTC+2, Ruby-Forum.com User a écrit : How to call java based

[Rails] Re: calling java application (BIRT) from rails application

2012-10-25 Thread Rahul Kumar
Kad Kerforn wrote in post #1081147: I guess BIRT java app already has a javascript API you can call from your Rails-Ruby app someone already worked it : see : https://github.com/casp/Birt-library-for-Ruby this guy may help you Le jeudi 25 octobre 2012 09:34:17 UTC+2, Ruby-Forum.com User

[Rails] Re: Ajax test not working

2012-10-25 Thread AndreM
Maybe try in controller: def getDiagram respond_to do |format| format.js end end On Wednesday, October 24, 2012 8:40:24 PM UTC+2, Ruby-Forum.com User wrote: Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file:

[Rails] Re: Ajax test not working

2012-10-25 Thread Frederick Cheung
On Wednesday, October 24, 2012 7:40:24 PM UTC+1, Ruby-Forum.com User wrote: Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file: window.onload = function() { $('#test').bind('ajax:success', function() {

Re: [Rails] Run rails application without installing rails

2012-10-25 Thread Walter Lee Davis
On Oct 25, 2012, at 1:34 AM, ruby rails wrote: Is it possible to run a rails application without installing rails gem in ubuntu system.?? If yes, please provide me some reference for it. I suppose you could vendor the entire application, which would remove the need to install the entire

[Rails] Re: Not updating the updated_at field

2012-10-25 Thread Matt Jones
On Tuesday, 23 October 2012 05:09:50 UTC-4, Peter Hickman wrote: This is for Rails 3.1.1 I have a field called last_seen in a model. This field will be updated when the something about the record is seen in the real world (don't worry about this part) So I go

[Rails] Re: Ajax test not working

2012-10-25 Thread webber han
Jason Walsh wrote in post #1080993: Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file: window.onload = function() { $('#test').bind('ajax:success', function() { alert(success); }; } in view: %= link_to

[Rails] Re: Ajax test not working

2012-10-25 Thread Jason Walsh
AndreM wrote in post #1081168: Maybe try in controller: def getDiagram respond_to do |format| format.js end end Hi Andre Tried that - dont get error but renders a blank template. My main concern is why the event isnt firing and showing the alert. -- Posted via

[Rails] Re: Ajax test not working

2012-10-25 Thread Jason Walsh
Frederick Cheung wrote in post #1081170: On Wednesday, October 24, 2012 7:40:24 PM UTC+1, Ruby-Forum.com User wrote: alert(success); }; } This javascript is syntactically incorrect - you're not closing the parens you open just after bind Also if you want to render nothing

[Rails] Re: Ajax test not working

2012-10-25 Thread Jason Walsh
webber han wrote in post #1081214: Jason Walsh wrote in post #1080993: Am having real probs trying to use Ajax with my Rails app. I have set up a test as follows: in javascript file: window.onload = function() { $('#test').bind('ajax:success', function() { alert(success);

[Rails] XML Builder

2012-10-25 Thread bwb
my code looks like this: xml.instruct! xml.county(name: @jurisdiction.name, id: @jurisdiction.jurisdictionID) do xml.officials do @officials.each do |official| xml.official do xml.firstname official.firstname xml.lastname official.lastname xml.eotypeID eotypeID:

[Rails] Re: XML Builder

2012-10-25 Thread bwb
My previous post on this question had an error in the resired target description. Here is it aagain; apologies for any confusion: my code looks like this: xml.instruct! xml.county(name: @jurisdiction.name, id: @jurisdiction.jurisdictionID) do xml.officials do @officials.each do |official|

[Rails] Re: extracting a portion of a model to a separate file

2012-10-25 Thread Frank Mattia
Matt Jones wrote in post #1080951: On Friday, 25 June 2010 01:12:47 UTC-4, frankj...@gmail.com wrote: I have a ton of models that each have fairly complex state machines. My state_machine blocks however are very large and clutter up my model.rb files... What I want to do is extract out all

Re: [Rails] Rails Services Module

2012-10-25 Thread Matthias Frick
hmm, i understand your opinion, but nowadays it would be very convenient to have so a docking station layer.. nearly every rails app interacts with external services, so I think it would be a great idea.. more other opinions? :) Am Donnerstag, 25. Oktober 2012 02:27:15 UTC+2 schrieb Fabian

Re: [Rails] XML Builder

2012-10-25 Thread Dave Aronson
On Thu, Oct 25, 2012 at 10:26 PM, bwb bwbash...@retrievalsystems.com wrote: Using XML Builder, or some other facility, how does one emit an element instance that has both attributes and non-empty content? Long story short: pass it the content, and then the attributes. (Or the other way

[Rails] why is thread asleep?

2012-10-25 Thread John Merlino
In this example: 1.9.3p0 :001 def threading 1.9.3p0 :002? i = 0 1.9.3p0 :003? while i = 50 1.9.3p0 :004? sleep(2) 1.9.3p0 :005? i += 1 1.9.3p0 :006? if i == 50 1.9.3p0 :007? puts the thread is finished at #{Time.now} 1.9.3p0 :008? end 1.9.3p0 :009? end 1.9.3p0

[Rails] Re: why is thread asleep?

2012-10-25 Thread John Merlino
Oh I see, because of the call to Kernel.sleep forces the thread in a sleeping state. On Oct 25, 9:55 pm, John Merlino stoici...@aol.com wrote: In this example: 1.9.3p0 :001 def threading 1.9.3p0 :002?   i = 0 1.9.3p0 :003?   while i = 50 1.9.3p0 :004?     sleep(2) 1.9.3p0 :005?     i += 1