[Rails] SSH/VNC/RDP Client Gems

2015-08-21 Thread Reg Natarajan
I have a new project that I'm considering writing in Rails. I've never written anything in Rails but I've been through my share of languages over the last few decades and I'm not afraid of new things. Given this, I may have some concepts wrong and will almost certainly have some wording wrong.

[Rails] How can i send locale specific email to a set of users together , including cc mail to the current u

2015-08-21 Thread Ragesh R.
How can i send locale specific email to a set of users together , including cc mail to the current user. Now, i have the below code: mail(to: participants, cc: @current_user.email, subject: default_i18n_subject(speech_subject: mtng.meeting_subject))do |format| format.html end The above will s

[Rails] Re: Curl to Rest API Implementation

2015-08-21 Thread Changjin Long
BalaRaju Vankala wrote in post #1177929: > Hello All, > > > I am using rest api for one of my projects, I am using httparty gem. > > $ curl --data-binary @mytickets.pdf " > https://brokerapi.ticketcity.com/orders/{SALEID}/uploadticket?api={APIKEY}"; > > I don't know how to call above link in the ht

[Rails] Re: How to communicate with json API

2015-08-21 Thread Changjin Long
Reto Bhunjun wrote in post #1177949: > Currently I am doing the Ruby on Rails Tutorial from Michael Hartl. I am > developing that code within the cloud9 IDE. What I am interested in > ultimately is to develop some application relating to cryptocurrencies > especially the counterparty protocol. For

Re: [Rails] Insert data into multiple tables

2015-08-21 Thread Colin Law
On 21 August 2015 at 11:46, Milley Duke wrote: > Hi, > > Is there any way to insert data when form is saved into another table. > > Say for example: > > I have membership table which already contains some data and have column > names as 'no_of_users_added', 'no_of_users_left'. > > I want to insert

[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
TRICK: Must notice what is between the paras and add them to the config/initializers/assets.rb file. Example: Rails.application.config.assets.precompile += %w(* application.js application.css* ). Once I added all of the things that needed to be precompile (now with sprockets 4.0), "rake" ran cl

[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
Partially fix (but now have new messages): After more digging, I added these lines to Gemfile: * * gem 'sprockets', git: 'git://github.com/rails/sprockets.git' * gem 'sass-rails', git: 'git://github.com/rails/sass-rails.git' * gem 'rack', git: 'git://github.com/rack/rack.git' * gem 's

[Rails] Re: Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
After adding "gem 'rack', github: ''rack/rack'" to example repo below, I get this when I run "bundle" command: Bundler could not find compatible versions for gem "rack": In Gemfile: rails (>= 0) ruby depends on actionpack (= 5.0.0.alpha) ruby depends on rack (~> 1.6) ruby

[Rails] Re: Upgrading from rails 3.0 to 3.2

2015-08-21 Thread Chaitanya Ralladoddi
Thanks Matt. Here's is the longer stack trace. I got past this error when I copied the abstract_class? and other methods from inheritance.rb to base.rb. How can we make ActiveRecord bse.rb include inheritance.rb so we dont have to so that? /Users/CRalladoddi/.rvm/gems/ruby-1.9.3-p551/gems/attr_

Re: [Rails] Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Hassan Schroeder
On Fri, Aug 21, 2015 at 9:09 AM, Al Snow wrote: > I checked rubygems.org and latest rack is at 1.6.4 so unclear how to get > 2.x. > > So how do I change my Gemfile to find "rack 2.x"? Try: gem 'rack', github: 'rack/rack' HTH, -- Hassan Schroeder hassan.schroe...@gmai

[Rails] Getting "Could not find gem 'rack (~> 2.x) ruby'" error while running bundle for Rails 5 app

2015-08-21 Thread Al Snow
I have 5 Rails 5 "canery apps' that in the past run bundle cleanly, but yesterday things changed. I have two repos (rt_demo_app5, rt_first_app5) that have run bundle cleanly (after adding rack master to Gemfile) and 3 that do not (hello_app5, toy_app5, sample_app_5_0_rt) even after addi

Re: [Rails] Re: Why does rake behave differently in production

2015-08-21 Thread tyler.scott.dewitt
Hi Matt, I was having issues where I was getting undefined methods on my service objects, as if the service object was not being loaded into memory. I’ve tried to recreate the problem, but I can not. It appears this is non reproducible and I must have had a stale environment or some other wei

[Rails] Re: Arabic text showing not properly in the file of s3

2015-08-21 Thread amtest
Thanks matt, can you suggest me to do any work around for this, i have been sitting with these issue for some days? the default encoding in my application is config.encoding = "utf-8" On Friday, 21 August 2015 15:55:00 UTC+4, Matt Jones wrote: > > > > On Thursday, 20 August 2015 06:03:13 UTC-5,

[Rails] Re: Arabic text showing not properly in the file of s3

2015-08-21 Thread Matt Jones
On Thursday, 20 August 2015 06:03:13 UTC-5, amtest wrote: > > I have uploaded the csv to s3 with rails, but the issue is, that the file > have arabic names, so when i open that csv file directly from s3 console, > its showing the arabic names as gibberish, i have attached that *image* > here >

Re: [Rails] Can Ruby on rails be installed on the same machine as SharePoint 2013?

2015-08-21 Thread Walter Lee Davis
On Aug 21, 2015, at 12:33 AM, Raksha Shetty wrote: > Yes. SharePoint has REST interface. Thank you. I am trying to use REST API. > Getting some security/authentication errors in SharePoint using REST API. > Trying to fix it. f you post what you've tried, and copy/paste the exact error you are

[Rails] Re: Insert data into multiple tables

2015-08-21 Thread Elizabeth McGurty
Look at http://api.rubyonrails.org/classes/ActiveModel/Dirty.html, specifically method changed? at http://api.rubyonrails.org/classes/ActiveModel/Dirty.html, and http://apidock.com/rails/ActiveRecord/Dirty/changed On Friday, August 21, 2015 at 6:47:15 AM UTC-4, Ruby-Forum.com User wrote: > > Hi

[Rails] Insert data into multiple tables

2015-08-21 Thread Milley Duke
Hi, Is there any way to insert data when form is saved into another table. Say for example: I have membership table which already contains some data and have column names as 'no_of_users_added', 'no_of_users_left'. I want to insert data from user table based on the count value how many users ar

[Rails] Re: Downgrading from Ruby 2.1.6 to Ruby 1.8.7

2015-08-21 Thread Moses JJS
Hi Matt, Thanks for your response. We rejected the request from the client and returned back the advance amount they paid and informed like "we would like to stick with our standard and do not make our project as a buggy or run our website without any security. " Thanks a lot for everyone. --