Chronicling my journey and discoveries in cutting-edge software development. Here, I share practical knowledge and solutions, focusing on Ruby on Rails, Node.js, and JavaScript, alongside explorations into Kubernetes, distributed systems, and latest web technologies.
Thanks for sharing. If you are looking Ruby on Rails in India then Cryptex Solutions is the one of the most reputed company in India. We customize canavas LMS, Integrate bitcoin payment gateway and many more. For more details contact us at: info@cryptextechnologies.com
For Truncating String I have used 'truncate' rails helper method. limiting to 10 characters truncate("im srikanth glad to meet you", 10) >> "im srik..." For HTML stripping, I have used gsub.. str.gsub(/ ]*>/, "")
hi i am using 'actionwebservice' for passing SOAP requests. Version 2.3.2 for actionwebservice is " datanoise-actionwebservice" For installing the gem when i used, gem install datanoise-actionwebservice got this error, ERROR: could not find gem datanoise-actionwebservice locally or in a repository & found this is the right way to install gem install datanoise-actionwebservice --source http://gems.github.com Add this line to your config/environment.rb file in the initializer section: config.gem 'datanoise-actionwebservice', :lib => 'actionwebservice' Generating API controller ActionWebService gem includes web_service generator that you can use like this: $ ./script/generate web_service post Define your API Open app/services/post_api.rb file and add methods that your service exposes: class PostApi [[:string]] end API implementation We are going to use direct dispatching mode, so all methods that implement our API go di...
Comments