Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft …

Member Avatar
+0 forum 0

I am new to Ruby On Rails. I am facing truble on creating a long running background job. my target is to send notification to all the active users between two given dates on specific given hour interval. Example: **send notification message after every 8 hours to all active users from March-9, 2016 to June-29, 2016** I already tried this with gem 'sidekiq', '~> 4.1' and succefully performed active job. but I am not able to schedule it. I also tried gem 'whenever', :require => false but it creates static crone job which constantly run on spcific time interval. not …

Member Avatar
+0 forum 0

Dear all, So I am trying to run a watir test application. Everything seems to be going well except I need to log each step that happens. I am able to log using the php script, but have not yet figured out how to write to a log file using ruby. Now since I am more experienced with php, I thought it'd be wise to pass the ruby data back to php before I can write to the log file. Below is my code; // Call ruby script with watir/selenium webdriver to run test function run_test ($browser, $country_code, $test) { …

Member Avatar
+0 forum 0

Hello everyone! I am rubydoggy a wannabe remote rails engineer and i challenged myself to create 10 projects (5 of them open source) to fill my portfolio and my github account. I have already launch a minimal Blog and i am planning the first project. I need a lot of support so, be my guest and follow me...!

Member Avatar
+0 forum 0

I have a MySQL table with a string-based primary key. I created it with an ActiveRecord::Migration as follows: create_table( "icd9s", id: false) do |t| t.string "ICD9Code", limit: 7, null: false t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index(:icd9s, :ICD9Code, unique: true) Then I went into MySQL and flagged "ICD9Code" as primary. When I dumped the schema, I got this: create_table "icd9s", primary_key: "ICD9Code", force: :cascade do |t| t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index "icd9s", ["ICD9Code"], name: "index_icd9s_on_ICD9Code", unique: true, using: :btree Here's my problem - the …

Member Avatar
+0 forum 0

Hi all, My project is on ruby on rails. I have one of ruby api returns json.jbuilder But I want that my api should not return json , it will display html.erb file Is anybody can help me???

Member Avatar
+0 forum 0

I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket.

Member Avatar
+0 forum 0

Hi Guys, I'm a newbie to rails. I'm bit confused about the following. What is the difference between RSpec and Minitest? Which will be easy and effective to use? Thanks in advance...

Member Avatar
+0 forum 0

Hi Guys, I'm a newbie to ROR.and I'm developing a sample app for practising. My app is for Quiz game qith time constrains. But, I don't know how to set a timer control for questions. I'm seeking for a solution for that to add timer control. I hope you will help t get rid out from this.

Member Avatar
+0 forum 0

I want to make a game somwhat akin in size and complexity to SNES Zelda.

Member Avatar
+0 forum 0

Because of [the course](https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about) I think to take to improve employment changes by SaaS, Ruby and Rails and basic agile techniques, I looked little the Ruby forum. Unfortunately it seemed in quite a sorry state some months old questions unanswered. Even there was a related article from one of them but it concluded better to take Python/Django than Ruby on Rails, so I hope it will be worth the one month effort to take this course. Actually only for Agile technology experience it should be worth it as I have not practised those technologies myself. How is the situation here, …

Member Avatar
+0 forum 0

Hi, I'm working on rails project where I use json file for storing some data. Basically data are stored and get using ajax calls from jquery. But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json there are no data. I open the file in firefox and data exists. When i refresh file in Chrome there are data. Sometimes data is inserted correctly. Maybe it could be browser cache issue? I know that AJAX is asynchronous but sometimes there are few refreshes needed for data to …

Member Avatar
+0 forum 0

Hi, I've been working with Ruby on Rails to make a web application, but I've found something that I really cannot work out how to do with it, so it may be best if I do it manually. Basically, I've got a dropdown menu, that is populated with a list of projects. I want users to be able to select a project from that list, and then all the details appear below it in a table (2 rows, the headers and the info). How would I acheive this with AJAX? Any help anyone could give would be great, thanks!

Member Avatar
+0 forum 0

Hi all the Ruby Folks! Use your skills for the sake of the OpenSource community, and try out the Ruby OpenSource Challenge. Fix a bug, write a new needed feature or just update the lagging documentation of a pointed Ruby Open Source project, and have a chance of winning some nice prizes. You can register at http://rubyosc.com/, and check out for updates at https://twitter.com/rubyOSC Hope you'll enjoy the event

Member Avatar
+0 forum 0

I am having a hard time connecting to active admin I get stuck @ localhost:3000/admin of the this tut http://net.tutsplus.com/tutorials/ruby/create-beautiful-administration-interfaces-with-active-admin/ I can connect to localhost:3000/ but when I connect to localhost:3000/admin I get page errors where there is supposed to be a user login... Started GET "/admin" for 127.0.0.1 at 2012-04-21 20:48:24 -0500 Processing by Admin::DashboardController#index as HTML Completed 401 Unauthorized in 2ms Started GET "/admin/login" for 127.0.0.1 at 2012-04-21 20:48:25 -0500 Processing by ActiveAdmin::Devise::SessionsController#new as HTML Rendered c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activeadmin-0.4.3/app/views/active_admin/devise/se ssions/new.html.erb within layouts/active_admin_logged_out (693.0ms) Completed 500 Internal Server Error in 851ms ActionView::Template::Error (super: no superclass method `buttons' for #<ActiveAdmin::FormBuilder:0x2225658>): 8: f.input …

Member Avatar
+0 forum 0

Hi everyone, I'm a bit new to Ruby *and* Rails, and I'm struggling with a task I'm trying to accomplish. I'm attempting to build a simple Rock-Paper-Scissors game in Ruby on Rails, and I'm a little lost as to where to begin. It seems to me that the app will need Users, a Computer-user to play against, and a Game engine that actually performs the matchup between the user and the computer and returns the result. However, I don't seem to have a good enough understanding of the MVC architecture or of how RoR works to know where to start. …

Member Avatar
+0 forum 0

Hi I've been playing for a while with WxRuby and I just acn make the TreeCtrl event evt_tree_expanded or evt_tree_expanding please help me here is the code mi problem its at line 46: [CODE]require 'wx' include Wx class MyFrame < Frame def initialize super(nil, :title => "prueba" ) @my_panel = Panel.new(self) @my_label = StaticText.new(@my_panel, :label => "MY", :pos => [150, 25], :size => Wx::DEFAULT_SIZE) @my_textbox = TextCtrl.new(@my_panel, :name => "Default Textbox Value", :pos => [20, 20]) @my_combo = Wx::ComboBox.new(@my_panel, :name => "Default Combo Text", :pos => [150, 25], :choices => ['Item 1', 'Item 2', 'Item 3']) @my_button = Button.new(@my_panel, -1, …

Member Avatar
+0 forum 0

I try to develop a rails web search engine that aims to use carrot 2 clustering rest service that is also work on my computer. However to use these two I need to deploy both of them to same server. Do you know any hosting that makes available to run both at the same time or do you mind and plus solution. I am really stack on this issue. On local host they can work on different Ports however ha it possible to run them also on any Web hosting and communicate them with carrot two rest service... Please help..

Member Avatar
+0 forum 0

(Note: This was previously posted at [url]http://www.ruby-forum.com/topic/3426459#new[/url] , but received no responses after four days.) When attempting to install ruby-debug19 on a Windows 7 partition, I have gotten the following error sequence: [code] ERROR: Error installing ruby-debug19: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog …

Member Avatar
+0 forum 0

Ok, I'm using the Head First Rails book, which sadly, was written in 2009. So, the API has changed drastically. I am trying to manually configure a route to make the controller find my show page. The route the book tells me to type [ICODE] map.connect '/ads/:id', :controller=>'ads', :action=>'show' [/ICODE] But this is obviously not working. How would I rewrite this line of code to make it properly conform to the new API? Thanks in advance.

Member Avatar
+0 forum 0

Hi, Can anyone please tell me how to consume a web service running on a jasper server?.I need the ruby code for the same.Please help. Regards, Arun

Member Avatar
+0 forum 0

Good day everyone, i need to print error message if id or row[0] is greater than 1 and a welcome message if name is correct and error message if the name is not correct. what my code does is that it prints out error message if id or row[0] is greater than 1 and a welcome message if name is correct. but if wrong name is entered instead of printing error message [B]"you are not mutago" [/B], it will display empty page. I don't know whether the problem is from [B]end statement.[/B]any help [CODE] /Ruby/bin/ruby require "mysql" begin con = …

Member Avatar
+0 forum 0

this is the following error : C:/Ruby193/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. C:/Ruby193/lib/ruby/gems/1.9.1/gems/rails-2.2.2/lib/rails_generator/generators/a pplications/app/app_generator.rb:6: Use RbConfig instead of obsolete and depreca ted Config.

Member Avatar
+0 forum 0

Hello all, I wanted that a particular user can login only 1 time in a day and his details are updated in the table.Can anyone help me with it. my login method is [CODE]args = params[:user] @user = User.find_by_username(args[:username]) if @user && @user.password == args[:password] session[:login] = @user.username redirect_to( :controller => "users", :action => "show") else session[:login] = nil redirect_to logins_path() flash[:notice] = "Wrong username or password" end[/CODE] any help would be appriciated

Member Avatar
+0 forum 0

Hey everyone! I was recently introduced to Ruby and am trying to learn it by working my way through the Ruby on Rails 3 Tutorial, but I got a little stuck on autotesting. The guide says that for Windows I should install "Growl for Windows," which I did, and then to use [ICODE]gem install autotest-growl -v 0.2.4[/ICODE], and I did that and nothing appeared for around five minutes (unusually long time) and then it returned: [ICODE]Error: while executing gem ... (errno::einval) Invalid argument - C:/Ruby192/lib/ruby/1.9.1/time.rb[/ICODE] I have never had this sort of error before and none of the commands I …

Member Avatar
+0 forum 0

Windows console works with the CP866 encoding. So input and output should be redefined to CP866. This thread [url]http://www.ruby-forum.com/topic/184730[/url] suggests a nice solution: [CODE]Encoding.default_external = Encoding.find(Encoding.locale_charmap) Encoding.default_internal = __ENCODING__ [STDIN, STDOUT, STDERR].each do |io| io.set_encoding(Encoding.default_external, Encoding.default_internal) end[/CODE] And it works. The text is now correctly displayed in Windows console. But the code crashes whenever Ruby faces a string that contains a non-CP866 character (like em dash "—"): [QUOTE]in `write': U+2014 from UTF-8 to IBM866 (Encoding::UndefinedConversionError)[/QUOTE] How do i overcome this error? Not using UTF-8 is not an option. Iconv has a nice solution: add "//IGNORE" to encoding name and error …

Member Avatar
+0 forum 0

So I want to import a model and then take it to particular x and y coordinates in sketchup. I had to do this in 2 different programs since the model had to be selected before taken to the coordinates. The programs are shown below: machine = "trial.3ds" model = Sketchup.active_model show_summary = true status = model.import machine, show_summary -------------------------------------------- obj = Sketchup.active_model.selection[0] pt = model.bounds.center.vector_to([x,y,0]) tr = Geom::Transformation.translation(pt) obj.transform!(tr) Is there a way to link these in 1 program? Thanks

Member Avatar
+0 forum 0

Hi, I am running Ubuntu 10.04 LTS, and wanted to install RVM today, I used: bash < <( curl [url]http://rvm.beginrescueend.com/releases/rvm-install-head[/url] ) (NOTE: I already have git-core and curl, etc.) After running that command I get the output in terminal from Wayne, and I added: if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi to .bashrc. I also replaced the return statement in .bashrc with the one recommended on the RVM website. After a system reboot, I tried to run rvm notes, and then a bunch of: "No such file or directory" lines are printed. I'm no Linux expert, …

Member Avatar
+0 forum 0

i am able to get the metasploit console started however when i try to open armitage for a gui as i am currently learning the process of penetration testing to secure my home network, i get the message[CODE=Bash] ./armitage:18:in 'exec' : No such file or directory - java (errno:: ENOENT) from ./armitage:18 [/CODE]

Member Avatar
+0 forum 0

Hi, I encountered a problem with threads in ruby. I created such a script: [CODE] require 'thread' def func $i = 0 while true $i += 1 $file.write("bbbb\n") Thread.pass end end def func2 $j = 0 while true $j += 3 $file.write("aaaa\n") Thread.pass end end def funcTerm while true a = gets if a != "" $t1.exit $t3.exit $t5.exit end end end $file = File.new("out.txt", "w") $t1 = Thread.new{func} $t3 = Thread.new{func2} $t5 = Thread.new{funcTerm} $t1.join $t3.join $t5.join puts ":" puts $i puts ":----:" puts $j puts "finished" [/CODE] It's supposed to start 3 different threads. Thread $t1 appends "bbbb" …

Member Avatar
+0 forum 0

The End.