[Rails] Issue with autocomplete jquery.

2014-02-14 Thread Sridhar Vedula
When I run my application in local machine the autocomplete functionality 
is working good, but after deployment it is failing.

This is the order in my application.js

//= require jquery
//= require jquery_ujs
//= require jquery.ui.datepicker
//= require jquery.ui.draggable
//= require jquery.ui.droppable
//= require jquery.remotipart
//= require twitter/bootstrap
//= require_tree .
//= require_directory ./vendor

But what I doubt is in the console it is throwing some error as :

Uncaught TypeError: Object [object Object] has no method 'truncate' 

Please help me out.

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8378f5e9-507e-40b6-b312-4fad65d72273%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Which Company is Best on Ruby on Rails Development in India?

2014-02-14 Thread VISoftWeb Dev
Hello, 
Greeting

 Without taking lots of your time I m present you some of work on RoR 
technology. 
Ruby On Rails:

 https://www.mepin.com/ https://hireinfluence.com/ http://www.meallogger.com/ 
http://www.vendep.com/ http://event.sevendevs.de/front_dashboard 

I have seen your needs with ROR developer and very glad to tell you that I am 
the perfect solution for you. 
Let me explain further: As you will see my work Portfolio, you can also refer 
our website 

www.virtueinfo.com

I worn a lot of different hats.

I can Manage your project from scratch to implementation because with 6+ years 
of experience made me a part of every System Development life Cycle Process. 

I represent an IT Company which is leading IT Firm since last 7+ Years in Web 
development From Mobile Application Development,e-Commerce Solutions and 
Quality Assurance to implementation, 

we are extremely motivated, organized and disciplined.  it’s important to 
note, never had a dissatisfied client. 

The ability to juggle projects and never missing a deadline is developed 
through by Our companies 7+ years of professional experience. 

It comes from Different projects in 7+ years. all with very different 
Requirements,activities, schedules and demands. 
We know what you’re thinking – that yes,I am the perfect person for the job 

Thanks 
Connect with us on air with skype: softweb.dave or 
e-mail us : visoftweb.d...@gmail.com 
Waiting to work with you.

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c763eff2-6187-4147-aedc-def34a012a6b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Active Record from an existing PostgreSQL database

2014-02-14 Thread Juan Andres Rodriguez
I have generated a model and a controller in *rails 4*,Client and 
ClientsController, and configure the database.yml with the postgres 
adapater and the database name, and i want that rails get the table 
attributes from the clients table and generate the forms and all the 
scaffolding CRUD operations. I've seen in the web some similar solutions 
but with mysql database and i think with rails 3:

class ClientsController  ApplicationController
  scaffold:clientend

 but when calling any of the web urls, rails advertised that i have *pending 
migrations*, and if you think about it i dont need to migrate the
 model because is already in the database

any help is welcome !



-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2926f694-b87e-4310-8494-205ea11dfcfc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Issue with autocomplete jquery.

2014-02-14 Thread Sridhar Vedula


On Friday, 14 February 2014 15:51:58 UTC+5:30, Sridhar Vedula wrote:

 When I run my application in local machine, the autocomplete functionality 
 is working good, but after deployment it is failing.

 This is the order in my application.js

 //= require jquery
 //= require jquery_ujs
 //= require jquery.ui.datepicker
 //= require jquery.ui.draggable
 //= require jquery.ui.droppable
 //= require jquery.remotipart
 //= require twitter/bootstrap
 //= require_tree .
 //= require_directory ./vendor

 But what I doubt is, in the console it is throwing some error as :

 Uncaught TypeError: Object [object Object] has no method 'autocomplete' 

 Please help me out.


-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1f3bcc34-f313-4c59-8b2a-e4c7c9ad00a6%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Refresh token using Omniauth-oauth2 in Rails application?

2014-02-14 Thread Ganesh Ranganathan
I am using omniauth-oauth2 in rails to authenticate to a site which
supports oauth2. The site gives me after doing the oauth dance, which I
then persist into the database

   1. Access Token
   2. Expires_AT (ticks)
   3. Refresh token

Is there an omniauth method to refresh the token automatically after it
expires or should I write custom code which to do the same.

If custom code is to be written, is a helper the right place to write the
logic?

Thanks,

Ganesh

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoFz5x%2Bqu_zh35HuT2tet34pJywwx7-3s6TzfgrET2CByQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CADKeJySSobRDQaqXx-gJ9HjzObx82FUK4ZHC7FCYOsrkCxQ9vQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Active Record from an existing PostgreSQL database

2014-02-14 Thread Gurpreet Luthra
Rails looks at the migrations table to figure out what migrations are
pending. Run this command to fix the migrations first, and then run your
rails app:

rake db:migrate

Read more here:
http://guides.rubyonrails.org/command_line.html

Regards
Gurpreet



On 14 February 2014 15:58, Juan Andres Rodriguez enanosa...@gmail.comwrote:

 I have generated a model and a controller in *rails 4*,Client and
 ClientsController, and configure the database.yml with the postgres
 adapater and the database name, and i want that rails get the table
 attributes from the clients table and generate the forms and all the
 scaffolding CRUD operations. I've seen in the web some similar solutions
 but with mysql database and i think with rails 3:

 class ClientsController  ApplicationController
   scaffold:clientend

  but when calling any of the web urls, rails advertised that i have *pending 
 migrations*, and if you think about it i dont need to migrate the
  model because is already in the database

 any help is welcome !



  --
 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-talk+unsubscr...@googlegroups.com.
 To post to this group, send email to rubyonrails-talk@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/rubyonrails-talk/2926f694-b87e-4310-8494-205ea11dfcfc%40googlegroups.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAHKR60yML9Xe0B6CHr6dVqS0xD6RHcwSDJPtUr8RsdXamZUWjA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Active Record from an existing PostgreSQL database

2014-02-14 Thread Frederick Cheung


On Friday, February 14, 2014 10:28:44 AM UTC, Juan Andres Rodriguez wrote:

 I have generated a model and a controller in *rails 4*,Client and 
 ClientsController, and configure the database.yml with the postgres 
 adapater and the database name, and i want that rails get the table 
 attributes from the clients table and generate the forms and all the 
 scaffolding CRUD operations. I've seen in the web some similar solutions 
 but with mysql database and i think with rails 3:

 class ClientsController  ApplicationController
   scaffold:clientend

  but when calling any of the web urls, rails advertised that i have *pending 
 migrations*, and if you think about it i dont need to migrate the
  model because is already in the database


Rails doesn't really do scaffolding for existing models: the views etc. are 
generated statically rather than by introspecting the current state of the 
model (This was removed from rails around the rails 2 time - I think it was 
extracted into a plugin and there are other gems that produce an admin type 
interface automatically from the schema (eg activeadmin, activescaffold).

You could i suppose generate the scaffold and then delete all the database 
migrations, leaving only the controllers/views. When you generate the 
scaffold you would have to list all the attributes you want the scaffold to 
be aware of.

Lastly, none of this should depend on which db you are using

Fred
 

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c672df40-a769-44cf-8baa-505d0d4a22d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Sender Email

2014-02-14 Thread James Davis, PhD


On Friday, February 14, 2014 5:12:22 AM UTC-6, daynthan kabilan wrote:

 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.comjavascript:
 )


  Would you happen to be using Devise?  If so, there is a current_user 
helper for accessing the user that is currently logged in. 

def *thanks_message*
  mail to: user.email, subject: Thank you., from: current_user.email

 end 

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b253133d-e2b0-4012-be6a-c359fe1c9865%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Refresh token using Omniauth-oauth2 in Rails application?

2014-02-14 Thread Jordon Bedwell
On Fri, Feb 14, 2014 at 4:33 AM, Ganesh Ranganathan
ganesh.ranganathan...@gmail.com wrote:

 I am using omniauth-oauth2 in rails to authenticate to a site which supports
 oauth2. The site gives me after doing the oauth dance, which I then persist
 into the database

 Access Token
 Expires_AT (ticks)
 Refresh token

 Is there an omniauth method to refresh the token automatically after it
 expires or should I write custom code which to do the same.

 If custom code is to be written, is a helper the right place to write the
 logic?

Last I remember omniauth does not support this at all.  No, a helper
is not the best place to do it, you should probably either background
check the token and refresh it there or add it as a method to the user
model since it's related to the user and it's behavior.

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAM5XQnxwPFE%3DAYBbK%3DtNwR4ObNWU03gMJpmgF8KkgRYANi1C7g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Jobs - Looking for Ruby on Rails Engineers around NYC

2014-02-14 Thread Sri Goteti
Description

We are looking for passionate Ruby on Rails engineers interested in
working for a leading provider of funding portal platform technology to
the private securities and crowdfunding space. The engineer will
participate in all phases of the software development cycle: from
product definition and design through implementation, debugging, and
testing. You will work collaboratively with other engineers and must be
willing to take on any technical tasks that contribute to the goals of
the team and the company.

Qualifications

Skills Required:

Talented Developer

Ruby / Rails or Grails

Experience with modern front end development (HTML, CSS, JavaScript)

JavaScript Frameworks (jQuery)

MySQL / Strong SQL skills

Requirements:

Strong knowledge and expert in front-end development with Javascript,
JQuery, CSS, and HTML.

Big data technologies experience a nice to have.

Experience with agile development techniques including test-driven
development with Rspec and Cucumber.

You thrive on creating elegant, efficient code yet have a strong passion
for product design.

You have experience working on high traffic transaction websites.

You understand the need to cache and how to optimise your code.

Testing is part of your ethos. You write tests before you code and you
are as passionate about writing good tests as you are about writing good
code.

DevOps understanding. Continuous delivery tools (Capistrano,
Puppet/Chef) (Nice to have).

We are always looking for passionate and hardworking individuals to join
our growing team. If you get the power of crowdfunding’s potential and
love working hard with smart people, then send us your resume and what
you feel you can contribute to care...@crowdnetic.com.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/2f0d1371ad33f1998a5e7116d54b4198%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Sender Email

2014-02-14 Thread Frederick Cheung
Al
On Friday, February 14, 2014 3:18:29 PM UTC, James Davis, PhD wrote:


 *example*
 mail(:to = user.email, :subject = Thank you., :from = 
 a...@gmail.com)


   Would you happen to be using Devise?  If so, there is a current_user 
 helper for accessing the user that is currently logged in. 

 def *thanks_message*
   mail to: user.email, subject: Thank you., from: current_user.email

  end 


 Although do note that this may cause your messages to be flagged as spam 
(because most domains use DKIM/SPF to specify which mail servers are 
authorized to send mail on their behalf, and in general you won't be 
authorized to send email from the user's domain.


Fred

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f9be9988-32ac-4ba2-9b60-e5a8e2dd83f9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Rails] Re: Issue with autocomplete jquery.

2014-02-14 Thread James Davis, PhD


On Friday, February 14, 2014 4:21:58 AM UTC-6, Sridhar Vedula wrote:

 When I run my application in local machine the autocomplete functionality 
 is working good, but after deployment it is failing.

 This is the order in my application.js

 //= require jquery
 //= require jquery_ujs
 //= require jquery.ui.datepicker
 //= require jquery.ui.draggable
 //= require jquery.ui.droppable
 //= require jquery.remotipart
 //= require twitter/bootstrap
 //= require_tree .
 //= require_directory ./vendor

 But what I doubt is in the console it is throwing some error as :

 Uncaught TypeError: Object [object Object] has no method 'truncate' 

 Please help me out.


I bet the main difference between your production  development environment 
is the data in your db.  Can you identify the exact record / object that is 
causing the error?  Use your logs or console in your production environment 
to find the the object that has an issue with the 'truncate' method. 

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/38802246-202f-46a3-8e2a-2f91c8b1d1e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Rails] Issue with autocomplete jquery.

2014-02-14 Thread buyzlots
change:
//= require_directory ./vendor
to
//= require_tree ./vendor
On Feb 14, 2014, at 3:00 PM, James Davis, PhD james.davis...@gmail.com 
wrote:

 
 
 On Friday, February 14, 2014 4:21:58 AM UTC-6, Sridhar Vedula wrote:
 When I run my application in local machine the autocomplete functionality is 
 working good, but after deployment it is failing.
 
 This is the order in my application.js
 
 //= require jquery
 //= require jquery_ujs
 //= require jquery.ui.datepicker
 //= require jquery.ui.draggable
 //= require jquery.ui.droppable
 //= require jquery.remotipart
 //= require twitter/bootstrap
 //= require_tree .
 //= require_directory ./vendor
 
 But what I doubt is in the console it is throwing some error as :
 
 Uncaught TypeError: Object [object Object] has no method 'truncate' 
 
 Please help me out.
 
 I bet the main difference between your production  development environment 
 is the data in your db.  Can you identify the exact record / object that is 
 causing the error?  Use your logs or console in your production environment 
 to find the the object that has an issue with the 'truncate' method. 
 
 -- 
 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-talk+unsubscr...@googlegroups.com.
 To post to this group, send email to rubyonrails-talk@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/rubyonrails-talk/38802246-202f-46a3-8e2a-2f91c8b1d1e8%40googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
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-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/3EB3557C-E4E0-4081-910B-3E1F6EA84366%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.