Re: [Rails] Rspect API test

2018-09-22 Thread Daynthan Kabilan
Thankyou On Fri, Sep 21, 2018 at 6:02 PM Walter Lee Davis wrote: > > > On Sep 21, 2018, at 8:03 AM, Daynthan Kabilan > wrote: > > > > Hi, > > > > Anyone please give me some idea about how to write test case with API > endpoints. > > > > I ha

[Rails] Rspect API test

2018-09-21 Thread Daynthan Kabilan
Hi, Anyone please give me some idea about how to write *test case with API endpoints*. I have used multiple API in my application. Currently i need to write the testcase to the API. So needs to be some request test specs (using rspec, preferrably) for all of the major ruby API endpoints. Thanks

Re: [Rails] How to redirect with multiple controller

2018-03-12 Thread Daynthan Kabilan
functionality(manual and automatic). On Mon, Mar 12, 2018 at 8:45 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Mon, Mar 12, 2018 at 7:31 AM, Daynthan Kabilan > wrote: > > > I have two controllers > > > > 1, api/risk_profiles > > 2, admin/r

[Rails] How to redirect with multiple controller

2018-03-12 Thread Daynthan Kabilan
Hi, I have two controllers 1, api/risk_profiles 2, admin/risk_profiles When i submitted a form then a new record was created in 'api/risk_profiles' controller and the action name 'create'. Now, i want to redirect to 'admin/risk_profiles' show action. Because i have upload some API process is

[Rails] Download multiple files via send_data

2018-03-01 Thread Daynthan Kabilan
Hi All, How to download multiple files via send_data or send_files. format.xml { send_data @records, type: "text/xml" } I have two XML files in temp directory. currently i have ziped the folder and download as a file. But i need download the 2 files without zip concept. If i try to download the

Re: [Rails] Re: Third party file transfer

2018-03-01 Thread Daynthan Kabilan
Thank you Hassan. On Wed, Feb 28, 2018 at 11:08 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Wed, Feb 28, 2018 at 9:30 AM, Daynthan Kabilan > wrote: > > > The ExLynx documentaion based on webservices code, but i have created XML > > files with user

Re: [Rails] Re: Third party file transfer

2018-02-28 Thread Daynthan Kabilan
roe...@gmail.com> wrote: > On Wed, Feb 28, 2018 at 8:15 AM, Daynthan Kabilan > wrote: > > > Currently, i need help for how to make the upload process with third > party > > site(EzLynx). > > Are you trying to do this file upload from within a running applicatio

Re: [Rails] Re: Third party file transfer

2018-02-28 Thread Daynthan Kabilan
need help for how to make the upload process with third party site(EzLynx). On Wed, Feb 28, 2018 at 8:59 PM, Joe Guerra wrote: > do they have an API? > > > On Wednesday, February 28, 2018 at 8:59:17 AM UTC-5, daynthan kabilan > wrote: >> >> Hi All, >> >&

[Rails] Third party file transfer

2018-02-28 Thread Daynthan Kabilan
Hi All, I need to fetch the data form rails application and store each data to one third party tool(EZLynx) API. Anyone can help me. Thanks for advance Daya -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group

Re: [Rails] create dynamic model and store the values to table

2017-01-06 Thread Daynthan Kabilan
Thank you Tamosus pontik. I have done the task using this keyword require "#{dynamic_model_name}" On Thu, Jan 5, 2017 at 7:24 PM, tamouse pontiki wrote: > On Thu, Jan 5, 2017 at 2:40 AM Daynthan Kabilan > wrote: > >> Hi Tamosus pontik, >> >> Thanks for you

Re: [Rails] create dynamic model and store the values to table

2017-01-05 Thread Daynthan Kabilan
;) do |f| f << "class #{model_name} < ActiveRecord::Base\nend" end But i need to store the values to specific tables. Note: I am not running migration for the dynamic tables(model) On Wed, Jan 4, 2017 at 10:07 PM, tamouse pontiki wrote: > > > On Wed, Jan 4, 2017 at 8

[Rails] create dynamic model and store the values to table

2017-01-04 Thread Daynthan Kabilan
Hi, I have a CSV upload option and need to create a table and model based on the CSV colums. We allow to upload different kind of CSV file formats and each file upload will create new table and info will be stored accordingly. I have created a table with columns based on CSV file header and also

[Rails] Can anyone suggest me for data import form Google Analytics

2016-02-04 Thread Daynthan Kabilan
Hi, I have worked on intermediate project. Here they used 7 domains and each domains retrieved Google Analytics data properly. Now i have create 3 new domains. It have records in Google Analitics but i can't get the result form GA to our site. i got empty array for this 3 domains. Gem: gem 'goo

Re: [Rails] Re: Call API using curl in seed.rb

2015-11-23 Thread Daynthan Kabilan
he...@gmail.com> wrote: > > > On Tuesday, November 17, 2015 at 3:14:33 PM UTC, daynthan kabilan wrote: >> >> Hi, >> >> I need to call API using curl in seed.rb >> >> Before i have used API like >> >> response = HTTParty.get(" >> ht

[Rails] Call API using curl in seed.rb

2015-11-17 Thread Daynthan Kabilan
Hi, I need to call API using curl in seed.rb Before i have used API like response = HTTParty.get(" https://pipeline.locallabs.com/api/v1/organizations?access_key=XX";) i don't know how to call API using curl in ssed.rb now my client assign one new domain and mentioned this was working for

Re: [Rails] Jqcloud-rails

2015-08-14 Thread Daynthan Kabilan
i have attracted image with one word cloud. the word cloud has group of url. I need to get all url in that cloud word. On Fri, Aug 14, 2015 at 8:13 PM, Colin Law wrote: > On 14 August 2015 at 14:56, Daynthan Kabilan > wrote: > >> Hi, >> I have bug solving one new projec

Re: [Rails] Re: Google API

2015-08-11 Thread Daynthan Kabilan
Yes. I can understand more ideas form the links. On Tue, Aug 11, 2015 at 8:52 PM, Elizabeth McGurty wrote: > Was it helpful? > > On Tuesday, August 11, 2015 at 11:16:08 AM UTC-4, daynthan kabilan wrote: >> >> Thankyou for your reply. >> >> On Tue, Aug 11, 2

Re: [Rails] Re: Google API

2015-08-11 Thread Daynthan Kabilan
.com/search?utf8=%E2%9C%93&q=PATH_TO_KEY_FILE > > I think you should find it helpful, if I understand correctly your concern. > > Liz > > > > On Tuesday, August 11, 2015 at 6:22:12 AM UTC-4, daynthan kabilan wrote: >> >> I need Fetch data form Google API. >> >

[Rails] Google API

2015-08-11 Thread Daynthan Kabilan
I need Fetch data form Google API. i have doubt in this field "PATH_TO_KEY_FILE" Can i give the value of https://www.google.com/analytics/web/?hl=en#home/a58698159w93898733p97832053/ to PATH_TO_KEY_FILE Thanks for advance Daya. -- You received this message because you are subscribed to the Go

Re: [Rails] Shopify- Reoder collection array

2015-07-06 Thread Daynthan Kabilan
:32 PM, Hassan Schroeder wrote: > On Mon, Jul 6, 2015 at 3:04 AM, Daynthan Kabilan > wrote: > > > If i have 10 soldout products in my collection array. This items should > show > > the last page of the pagination. > > Is there a question there? What are you having

[Rails] Shopify- Reoder collection array

2015-07-06 Thread Daynthan Kabilan
Hi guys, I have working on shopify liquid. I need to show the sold out products in last page (in last page of the pagination). example. If i have 10 soldout products in my collection array. This items should show the last page of the pagination. Thanks for advance. Daya -- You received this m

Re: [Rails] how to create a table dynamically in rails 4.without creating model?

2015-01-20 Thread Daynthan Kabilan
Hi Ulaganadhan. This link will help you. https://www.packtpub.com/books/content/designing-and-creating-database-tables-ruby-rails On Tue, Jan 20, 2015 at 10:37 PM, Rajkumar Ulaganadhan wrote: > how to create a table dynamically in rails 4.without creating model? > > -- > You received this mes

[Rails] Get Full Url

2015-01-17 Thread Daynthan Kabilan
Hi Frinds, I need to get full URL in SHOPIFY LIQUID. Thankyou for advance. Regards, Daya. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-t

[Rails] Doubt in Routes

2014-06-04 Thread Daynthan Kabilan
Hi, I have one doubt in routes, Scenarios: Format -1: http://localhost:3000/city/category/sub-category/user-name/product-name I have written the routes for the above format-1 match '/:city-ca/:categ/:sub

Re: [Rails] How to use Rambling Slider Rails

2014-06-04 Thread Daynthan Kabilan
Hi Veasna, Try to this flow. Installation Add the following line to your Gemfile : gem 'rambling-slider-rails' And proceed to run: bundle install Usage After the installation is complete, you can include the jQuery Rambling Slider on the application.jswith: //= require jquery//= require jq

[Rails] Facebook wall post

2014-03-27 Thread Daynthan Kabilan
Hi Friends, In my application need send multiple message(selected friends only) to face book users. am using *fb.ui method: feed. *If i send one user it will work but it not supported to mutiple friends. How to solve it. -- You received this message because you are subscribed to the Google Gro

Re: [Rails] Re: Sender Email

2014-02-16 Thread Daynthan Kabilan
Thanks for your reply, i want to add current user's email address in our default :from in user mailer On Fri, Feb 14, 2014 at 11:35 PM, Frederick Cheung < frederick.che...@gmail.com> wrote: > Al > > On Friday, February 14, 2014 3:18:29 PM UTC, James Davis, PhD wrote: >> >> >> *example* >>> ma

[Rails] Sender Email

2014-02-14 Thread Daynthan Kabilan
Hi Friends, how to add current user's email address for sender email using actionmailer. *example* mail(:to => user.email, :subject => "Thank you.", :from => "a...@gmail.com") -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscri

[Rails] Search

2013-12-23 Thread Daynthan Kabilan
Hi all, how to avoid single quote in our rails search Example in my users table user_name=ram'kumar my search query params[:name]=ramkumar @ans=Users.where("user_name=?",params[:name]) how can i get the value? any one give me a solution Thankyou. -- You received this message because yo

[Rails] Import Hotmail contacts

2013-11-28 Thread Daynthan Kabilan
*Hi friend,* how to import hotmail contacts in our application. i used omnicontacts gem. my code is *controller* def contact_list @contacts = request.env['omnicontacts.contacts'] end *view* <%@contacts.each do |con| %> <%= con[:email] %> <%= con[:name] %> <%end%> name return correctl

Re: [Rails] How to use javascript variables in ruby

2013-11-13 Thread Daynthan Kabilan
hi here i have mention example code var js_name="daya"; <%=@user=User.where("name=?", js_name%> alert("<%=@user%>"); -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it,

[Rails] How to use javascript variables in ruby

2013-11-13 Thread Daynthan Kabilan
Hi friends, How to use javascript variables in ruby. i have activity id on a_id function(a_id) { <%@foo=Activity.where("activity_id = ? ", a_id) } how can solve it -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from th

[Rails] Export CSV

2013-11-07 Thread Daynthan Kabilan
Hi friends, i am using csv export on my application. in my view file code is <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer Name", "Ticket code"] -%> <%= CSV.generate_line(headers).strip %> <%if !@trans.nil? && @trans.length > 0 %> <% @trans.each do |tran|%> <% if !t

[Rails] Time.at

2013-10-29 Thread Daynthan Kabilan
Hi friends, now i upgrade my ruby version 2.0.0. How can use Time.at In ruby 2.0.0. Thanks for advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Access tocken

2013-10-10 Thread Daynthan Kabilan
hi friends, i am using omni contacts gem for import friends. how to get access token on facebook login using omni-contacts gem Thanks for advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop

[Rails] Post Message to facebook friends timeline.

2013-10-10 Thread Daynthan Kabilan
Hi friends. i have my facebook friends profile id in my friends page. now i want post message to particular user. how is possible. reply me. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receivi

Re: [Rails] Google calendar

2013-10-10 Thread Daynthan Kabilan
lbox.com/projects/google_calendar > > I haven't used it, but it looks decent and it is in current development. > > Walter > > On Oct 10, 2013, at 1:18 AM, Daynthan Kabilan wrote: > > > Hi friends, > > > > How to work my application events to store in google calendar

[Rails] Google calendar

2013-10-09 Thread Daynthan Kabilan
Hi friends, How to work my application events to store in google calendar. Is this possible. any good links are available to do this. thanks for advance.. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group an

Re: [Rails] Get current url

2013-10-07 Thread Daynthan Kabilan
hi friends first thanks for your immediate reply. i am using omnicontacts for import friends concepts. so i created google api key that redirect uri is http://example.com/contacts/gmail/callback if i enter http://example.com that time i got correct reply if i enter http://www.example.com that

[Rails] Get current url

2013-10-07 Thread Daynthan Kabilan
Hi friends, i need current url in rails environment file. i can get current url in conroller by the below command. request.env['HTTP_HOST'] and now i want get current url in environment.rb file or intializer folder files Regards, Daya. -- You received this message because you are subscribed

[Rails] facebook id

2013-10-07 Thread daynthan kabilan
Hi friends, I am using omnicontats gem for import gmai, yahoo, facebook and hotmail friends. i need my login detail in facebook. @contacts = request.env['omnicontacts.contacts']@user = request.env['omnicontacts.user'] i got my friends detail in @contacts but i need my details. @user is retu

[Rails] Import friends

2013-05-29 Thread daynthan kabilan
Hi friends, I need send invitation to my facebook friends. i can import all my facebook friends. but when i send a message to particular user this message send all my friends. how can i solved it. Please help me. this is my code def facebook_invite friend_id= params[:mail] logger.debug('

Re: [Rails] id NOT IN (?)

2012-09-18 Thread daynthan kabilan
Dear Walter sorry for the delay reply. am using rails 2.3.11 am using your condition by @users = User.find(:all, :conditions=>["id NOT IN (?)", @issues.map(&:id)]) that time also i got both output and i got the correct output for this condition. :conditions=>["id not in (?)",issues] and