[Rails] Fwd: Annotate Images in Rails

2015-10-16 Thread Ganesh Ranganathan
Hi All, What's the best gem to annotate images in Rails? I want to highlight certain sections of an image based on my custom logic. Thanks in advance! Regards, Ganesh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe

Re: [Rails] Ruby on Rails

2015-10-07 Thread Ganesh Ranganathan
On Wed, Oct 7, 2015 at 5:41 PM, Prashant Girennavar wrote: > Can someone tell me, how to approach the learning of RoR? > ​Michael Hartl's tutorial is the best place to start for a beginner to Rails - https://www.railstutorial.org/ Thanks, Ganesh​ -- You received this

Re: [Rails] application help

2015-09-29 Thread Ganesh Ranganathan
On Tue, Sep 29, 2015 at 6:32 PM, mohammad imran wrote: > I got a local user group who wants to sell item from my website . what I > want is a very simple interface where a user gets registered on my website > and has ability to upload images when user uploads image there

Re: [Rails] Ruby charting library?

2015-09-26 Thread Ganesh Ranganathan
On Sat, Sep 26, 2015 at 6:03 AM, wrote: > There's quite a few actually. You can check out HighCharts or for > something even easier to learn check out Chartkick. > ​HighChart is great but the developer licenses cost a lot.​ -- You received this message because you are

Re: [Rails] rails

2015-09-25 Thread Ganesh Ranganathan
On Fri, Sep 25, 2015 at 5:07 PM, Amanpreet Singh wrote: > need help on rails with angular > You're going to have to ask a more specific question to get help on this list. Thanks, Ganesh​ -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails] Multiple Rails versions, multiple database sources, and mutiple gem versions

2015-08-09 Thread Ganesh Ranganathan
in matters stated above. Am I missing some point in using VM toward that purpose? Liz On Sunday, August 9, 2015 at 12:01:40 AM UTC-4, Ganesh Ranganathan wrote: Yes I mean virtual machines. To install a VM First the iso file has to be downloaded from Ubuntu site. Then VirtualBox software

Re: [Rails] Multiple Rails versions, multiple database sources, and mutiple gem versions

2015-08-08 Thread Ganesh Ranganathan
Windows has a rvm counterpart called pik. Which lets you switch between multiple ruby versions. However the best way is to develop on a VM. With large enough RAM and two processor cores assigned to a VM it feels like native development. Thanks. Ganesh -- You received this message because you

Re: [Rails] Multiple Rails versions, multiple database sources, and mutiple gem versions

2015-08-08 Thread Ganesh Ranganathan
Yes I mean virtual machines. To install a VM First the iso file has to be downloaded from Ubuntu site. Then VirtualBox software has to be downloaded While creating a new VM, the iso has to be added in the optical drive section So after the VM starts, it takes you into Ubuntu installation and the

Re: [Rails] How to completely uninstall RSpec version 3+?

2015-07-27 Thread Ganesh Ranganathan
On Mon, Jul 27, 2015 at 11:39 PM, Sage Jankowitz li...@ruby-forum.com wrote: I would like to uninstall all versions 3 or greater so I can work through this project. I have been trying for most of today and I just ​Use the command *rvm gemset create* to create a fresh new gemset where you can

Re: [Rails] installing rails

2015-07-21 Thread Ganesh Ranganathan
On Tue, Jul 21, 2015 at 4:09 PM, Ankit Raj akt...@gmail.com wrote: still an errror ​Open the site (Get.rvm.io http://get.rvm.io/) in​ the browser. What error do you get. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe

Re: [Rails] Ruby on Rails : a dynamic pick list for 1000+ candidates

2015-06-26 Thread Ganesh Ranganathan
On Fri, Jun 26, 2015 at 7:52 AM, David Ng david.ng...@gmail.com wrote: I saw some dynamic search pick list, I mean the pick list is updated whenever I type one character. DO i have to do it in Javascript ? ​This can be done with jquery. On the change event of the textbox , make an ajax call

Re: [Rails] Ruby on Rails : a dynamic pick list for 1000+ candidates

2015-06-26 Thread Ganesh Ranganathan
On Fri, Jun 26, 2015 at 1:20 PM, Colin Law clan...@gmail.com wrote: That way will involve a server request for every character typed, since that could easily be several seconds and maybe a lot more this will introduce intolerable delays for the user. ​I implemented this with a three

Re: [Rails] can rails be more friendly to windows user?

2015-05-21 Thread Ganesh Ranganathan
On Fri, May 22, 2015 at 3:28 AM, Walter Lee Davis wa...@wdstudio.com wrote: RVM doesn't support Windows, so there's that... ​pik is a similar utility on windows​ -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this

Re: [Rails] username not in sudoers file and access denied to sudoers file

2015-05-09 Thread Ganesh Ranganathan
On Sun, May 10, 2015 at 5:26 AM, RICARDO CARREÑO AGUILERA ricardocarrenoaguil...@gmail.com wrote: I am trying to install RVM to install ruby on rails in lynux but I get the following message: your username is not in the sudoers file, then when I try to use visudo to edit the sudoers file, the

[Rails] Docker for rails production deployment?

2015-04-08 Thread Ganesh Ranganathan
Hi All, Does anyone on the list use Docker for rails production deployment? If so could you please explain how you handle the database? Do you run the DB server in another container? If so how do you handle persistence, backups, and schema migrations? Thanks in advance! Regards, Ganesh --

Re: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Thu, Mar 26, 2015 at 2:22 PM, Colin Law clan...@gmail.com wrote: If you just want to download, open and print then I recommend using pdf. Several possibilities are available for this: ​I looked at PDF too but the users might want to make minor changes to the layout. The site is for

Fwd: [Rails] Generate MS Word files in Rails

2015-03-26 Thread Ganesh Ranganathan
On Wed, Mar 25, 2015 at 7:32 PM, Scott Ribe scott_r...@elevated-dev.com wrote: 1) You might want to use RTF templates instead. It's a format you can more easily search for your markers and modify, and Word will open it directly. ​Thanks for your answer Scott. Does RTF pose any formatting

[Rails] Generate MS Word files in Rails

2015-03-25 Thread Ganesh Ranganathan
Hey all, Can you suggest a good gem for generating word files from Rails. The main requirement is to replace some sections inside an existing template in rails. I used docx_replace, but found that it's not always replacing the variable names with the template values. Thanks, Ganesh -- You

Re: [Rails] ruby 1.8.7-p302.exe file i am not getting

2015-01-22 Thread Ganesh Ranganathan
On Thu, Jan 22, 2015 at 3:26 PM, Norbert Melzer timmel...@gmail.com wrote: Using Linux plus RVM (or similar) is also my suggestion in most cases. But throwing just RVM to an obvious windowsuser is a little rude I think, if something is not available on the platform in question, one should

Re: [Rails] ruby 1.8.7-p302.exe file i am not getting

2015-01-21 Thread Ganesh Ranganathan
On Wed, Jan 21, 2015 at 3:57 PM, Lokesh Baxi li...@ruby-forum.com wrote: please i want to install the version ruby1.8.7-p302.exe please help me ​I would suggest doing ruby development on a linux VM instead of windows. Your can install any ruby version using RVM. Thanks, Ganesh​ -- You

Re: [Rails] error accessing the project - while trying to go through Lynda.com tutorial for rails 4.0

2014-12-13 Thread Ganesh Ranganathan
On Sun, Dec 14, 2014 at 2:00 AM, Michael Dowell moodoog...@gmail.com wrote: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) ​Is mysql installed on the machine?​ -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Schedule Heroku tasks without using 2 additional dynos

2014-12-03 Thread Ganesh Ranganathan
Hi All, I have a rails app hosted on Heroku which needs a regular task to run every 30 mintues. The task takes 5 minutes to complete Previously I was using the gem resque and resque-scheduler for this. The problem however is that this requires 2 additional dynos, one for the scheduler and one

[Rails] Re: [chennai.rb] Schedule Heroku tasks without using 2 additional dynos

2014-12-03 Thread Ganesh Ranganathan
On Wed, Dec 3, 2014 at 3:34 PM, Harisankar P S mai...@hsps.in wrote: ​You could use the sucker punch gem which does the background processing along with the rails process, so there shouldn't be the need to start another dyno. Not sure about if we can schedule it to start at a particular

[Rails] Re: [chennai.rb] Schedule Heroku tasks without using 2 additional dynos

2014-12-03 Thread Ganesh Ranganathan
On Wed, Dec 3, 2014 at 5:39 PM, Harisankar P S mai...@hsps.in wrote: Thats true, I did a google on running cron job in heroku it seems there is an addon called heroku scheduler[1] which would works like cron. But its run hours would cost as as your regular dyno run hours so it wouldn't be a

[Rails] Rails 4 Filtering on has_many through associations

2014-11-26 Thread Ganesh Ranganathan
Hi All, I have an issue on filtering a has_many through association. My model is as follows class Group has_and_belongs_to_many :messages has_many :tags, through :messages end class Message has_and_belongs_to_many :tags end class Tag has_and_belongs_to_many :messages end This gives

Re: [Rails] Rails 4 Filtering on has_many through associations

2014-11-26 Thread Ganesh Ranganathan
On Wed, Nov 26, 2014 at 4:07 PM, Colin Law clan...@gmail.com wrote: Groups.first.messages.where(:created = '11-11-2014').tags By the way, if you mean :created_at then this will not work as created_at includes the time, so to get an exact match on 11-11-2014 it would have to be exactly

[Rails] Re: [chennai.rb] Rails 4 Filtering on has_many through associations

2014-11-26 Thread Ganesh Ranganathan
On Wed, Nov 26, 2014 at 3:13 PM, Ganesh Mohan ganeshmoha...@gmail.com wrote: You can do this has_and_belongs_to_many :messages, - { where(created_at: '11-11-2014') } or you can use scope which is much better ​Hi Ganesh, I tried various scope syntaxes but it didn't work. :( Can you point

Re: [Rails] Rails 4 Filtering on has_many through associations

2014-11-26 Thread Ganesh Ranganathan
On Wed, Nov 26, 2014 at 6:49 PM, Colin Law clan...@gmail.com wrote: You are right of course. ​I got the answer from another mailing list. Created a static method on the Tag model def self.for_groupmessages_created_on(group_id,fromdate,todate) Tag.joins(:messages,

Re: [Rails] not able to join on #rubyonrails channel on freenode

2014-11-23 Thread Ganesh Ranganathan
On Sun, Nov 23, 2014 at 12:47 PM, Puneet Agarwal puneet.241994.agar...@gmail.com wrote: I have tried to connect with #rubyonrails channel but authentication failed. Can someone help me out in resolving this problem.It is urgent as i am facing so many problems in development phase. I need to

Re: [Rails] My new Rails app: Lose Money Fast

2014-11-20 Thread Ganesh Ranganathan
On Fri, Nov 21, 2014 at 2:48 AM, Jason Hsu, Rubyist jhsu802...@gmail.com wrote: It's at https://losemoneyfast.herokuapp.com/ . If you ever wondered how you'd fare if you could buy thousands of lottery tickets per drawing, my new Rails app Lose Money Fast will allow you to simulate this. It

Re: [Rails] [JOBS] Ruby on Rails Technical Developer

2014-10-21 Thread Ganesh Ranganathan
On Tue, Oct 21, 2014 at 10:48 PM, David Zimmer thecdnpharm...@gmail.com wrote: Job Category: Information Technology, Healthcare, Medical, Pharmaceutical Hours: Monday to Friday, Days; Standard 40 hours per week Salary: Commensurate with Qualifications Is this same site which keeps

Re: [Rails] Posting rails application online

2014-10-13 Thread Ganesh Ranganathan
On Mon, Oct 13, 2014 at 5:09 AM, Aspiring.Student.programmer sabrina@gmail.com wrote: I am just curious when i finish my application (but haven't yet) can you post the application online and if so how do u do it as to submit my assignment i would be to difficult without putting it online

Re: [Rails] Help Me

2014-10-08 Thread Ganesh Ranganathan
On Wed, Oct 8, 2014 at 6:59 PM, pra...@faststreamtech.com wrote: How to use the USPS Address Verification Api on Ruby on Rails Pls Send the code demo...My name is Prabu 08050192936 this is my no pls contact ​What code have you written till now? What errors are you getting while running it?​

Re: [Rails] Re: Connecting to SQLServer

2014-10-04 Thread Ganesh Ranganathan
On Sat, Oct 4, 2014 at 6:42 PM, Richard Lenawasae li...@ruby-forum.com wrote: So can i start scaffolding manually from ruby command prompt, but i know scaffolding manually is quite tiresome and if i can really get another alternative then fine...? ​Why not use the ActiveRecord Sql Server

Re: [Rails] So why 3000?

2014-09-18 Thread Ganesh Ranganathan
On Thu, Sep 18, 2014 at 12:53 AM, Jonathan Haar jonat...@peoplepattern.com wrote: Why does the rails server default to port 3000? ​Because DHH decided so, that's why​! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from

Re: [Rails] My First Project Help

2014-09-15 Thread Ganesh Ranganathan
On Mon, Sep 15, 2014 at 2:42 PM, Mohammed Rashid li...@ruby-forum.com wrote: I just need somebody to point me in the right direction on how to start off. I have so far got experience on creating todo lists, user authentication and jumping into a real life project which is a big moment for me.

[Rails] Left Outer Join with multiple tables and group by counts

2014-08-26 Thread Ganesh Ranganathan
Hi, Is it possible to do a left outer join in Rails4. This is my model and I am trying to write a scope which will do a left outer join of users with the message, comments and likes tables and then group by id to get total count. So the final result set would be cuuser.*, message_count,

Re: [Rails] What javascript framework would you use to build a multi-page Rails app?

2014-06-21 Thread Ganesh Ranganathan
On Thu, Jun 19, 2014 at 2:53 AM, learning_to_swim asho...@gmail.com wrote: I am new to Rails/JavaScript and most of what I have seen (Backbone/Ember/Angular) are really designed for Single Page Applications and you will have to hack your way in to build a multi page web app (or at least that

Re: [Rails] Calling HTML snippet from another HTML file

2014-06-13 Thread Ganesh Ranganathan
On Fri, Jun 13, 2014 at 5:03 PM, Damián M. González li...@ruby-forum.com wrote: I want to abstract some parts like the footer and the upper part to another file, for easy reading and order. ​This can be achieved by layouts. In the layouts/application.html.erb file you can call different

Re: [Rails] Re: Recommendations for Hosted CI servers supporting RoR with private repos?

2014-05-13 Thread Ganesh Ranganathan
On Sun, May 11, 2014 at 6:55 AM, Manaswini Sawant manasw...@gmail.comwrote: You can try www.shippable.com - it is free for unlimited builds for all public repos and up to 5 private repos. You only need to pay for added concurrency - which you don't need probably. ​Thanks, this seems great!

[Rails] Recommendations for Hosted CI servers supporting RoR with private repos?

2014-05-08 Thread Ganesh Ranganathan
Any recommendations for hosted CI servers which support Rails and also private repos? I looked at Codeship.io but it costs $50 a month. I just need around 500 builds a month for a single repo Thanks, Ganesh -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] How to eager load assocations

2014-05-02 Thread Ganesh Ranganathan
I have the following associations in my ActiveRecord models 1) Groups 2) Users Each Group has and belongs to many users There is an api endpoint - Site/api/v1/groups which returns a list of the groups. In the controller when I am sending a list of 20 groups, the Users property is not populated

Re: [Rails] Re: How to eager load assocations

2014-05-02 Thread Ganesh Ranganathan
On Fri, May 2, 2014 at 2:54 PM, Andrei G. li...@ruby-forum.com wrote: You can use Group.includes(:users) ​Includes didn't work. But I asked on IRC and someone suggested using a custom serializer. That worked like a charm -- You received this message because you are subscribed to the Google

Re: [Rails] Re: Setting up rails, created a directory, wondering where to install rails

2014-04-19 Thread Ganesh Ranganathan
On Sun, Apr 20, 2014 at 1:32 AM, Matt Kazuka li...@ruby-forum.com wrote: I have also got the ruby server running, but have no idea how to start programming with ruby. I am using TextMate, so if I write some code now where should I exactly save that file to? ​Try Michael Hartl's tutorial

Re: [Rails] Chiefs vs Rebels live.stream free

2014-04-12 Thread Ganesh Ranganathan
Please ban this guy On Sat, Apr 12, 2014 at 12:11 PM, Sampath Weerasinghe swe20...@gmail.comwrote: Is it rails related? On Fri, Apr 11, 2014 at 11:38 PM, Mesu Mesubabu li...@ruby-forum.comwrote: http://sourceforge.net/projects/rebelsvschiefslivesuperrugby/

Re: [Rails] Chiefs vs Rebels live.stream free

2014-04-12 Thread Ganesh Ranganathan
On Sat, Apr 12, 2014 at 7:04 PM, Frederick Cheung frederick.che...@gmail.com wrote: Unfortunately these posts come through ruby-forum (which allows posting with no user account) - they can't be banned without blocking all ruby-forum users Can't the ruby-forum admins IP ban this spammer? --

Re: [Rails] Images not loading on localhost

2014-04-04 Thread Ganesh Ranganathan
On Sat, Apr 5, 2014 at 1:36 AM, Elton Yau yauel...@gmail.com wrote: img src=C:\Sites\sos_images\Happy_smiley_face width=77 height=120 alt= You can place the images in the assets\images folder and use image_tag in rails to generate the markup This is the API Page for image_tag

Re: [Rails] Re: Images not loading on localhost

2014-04-04 Thread Ganesh Ranganathan
On Sat, Apr 5, 2014 at 2:11 AM, Elton Yau yauel...@gmail.com wrote: Sorry its a physical drag to the folder right ? Yes you just need to move them. The best way to learn Rails from scratch is this beginner tutorial by Michael Hartl. He covers all aspects step by step in a very easy to

Re: [Rails] Re: Images not loading on localhost

2014-04-04 Thread Ganesh Ranganathan
On Sat, Apr 5, 2014 at 2:20 AM, Elton Yau yauel...@gmail.com wrote: image_tag(Happy_smiley_face) Try this with the file extension (e.g. Happy_smiley_face.jpg) Also the file should be in images folder and the casing should match if you are running on Mac/Linux -- You received this message

Re: [Rails] Re: Generating a PDF report dynamically

2014-03-27 Thread Ganesh Ranganathan
On Thu, Mar 27, 2014 at 11:16 AM, Walther Diechmann walt...@diechmann.netwrote: But does the designer not master Adobe Dreamweaver or some HTML Designer tool? Then have him design the form in that tool and have him spit out HTML 4.1, skip the Adobe Illustrator - PDF - Acrobat - XML part of the

[Rails] Generating a PDF report dynamically

2014-03-26 Thread Ganesh Ranganathan
In my rails application, I am looking to generate a PDF report dynamically. The layout would be static and given to me by a designer who has made it on Adobe Illustrator. I need to use the layout and just update the values, create the PDF out of it and let the user download it. Could you please

Re: [Rails] Re: Generating a PDF report dynamically

2014-03-26 Thread Ganesh Ranganathan
On Thu, Mar 27, 2014 at 1:04 AM, masta Blasta li...@ruby-forum.com wrote: I'm pretty certain though that there is nothing out there that will parse an adobe illustrator file for you. Thanks masta. Is there any intermediate file format that both Prawn and Illustrator/Indesign can talk with.

Re: [Rails] Re: Re: Generating a PDF report dynamically

2014-03-26 Thread Ganesh Ranganathan
On Thu, Mar 27, 2014 at 1:51 AM, masta Blasta li...@ruby-forum.com wrote: You need to MANUALLY turn your illustrator file into a template.pdf.erb file (which is the same as a .html.erb file). You will need styles, proper HTML, the whole works. Then you make a controller action to accept the

Re: [Rails] Generating a PDF report dynamically

2014-03-26 Thread Ganesh Ranganathan
On Thu, Mar 27, 2014 at 2:12 AM, Walter Lee Davis wa...@wdstudio.comwrote: You beat me to it. This is what I was going to recommend. You may find that you have a lot of cleanup needed to make the InDesign HTML (and CSS) less awful. But this should get you started. I'm going to first try it

Re: [Rails] Making sure the Admin of a website is not deleted

2014-03-04 Thread Ganesh Ranganathan
You can use a before_action filter in the controller to check both the current user's permissions and the user he is about to delete. And if it is another admin user or himself, then redirect them to another page with a flash error message. More details at the filter link below

Re: [Rails] Query through a join table question

2014-02-27 Thread Ganesh Ranganathan
Try Minisection.find(minisection_id).questions.pluck(:id) On Fri, Feb 28, 2014 at 12:33 AM, Dave Castellano li...@ruby-forum.comwrote: Hi, I am trying to do the following database query (ie find all question id's with the selected minisection id): minisection_questions =

[Rails] Advanced ActiveRecord tutorials

2014-02-24 Thread Ganesh Ranganathan
Any recommendations for good advanced tutorials on ActiveRecord in Rails4? I'm interested in joins, group, counts especially for deep associations. Thanks, Ganesh -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this

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

2014-02-24 Thread Ganesh Ranganathan
On Fri, Feb 14, 2014 at 9:03 PM, Jordon Bedwell envyge...@gmail.com wrote: 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

[Rails] Jim Weirich's final GitHub commit

2014-02-24 Thread Ganesh Ranganathan
https://github.com/jimweirich/wyriki/commit/d28fac7f18aeacb00d8ad3460a0a5a901617c2d4 Nice of Github to put up a banner in his honour. -- 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

Re: [Rails] Re: Best IDEs for Ruby on Rails

2014-02-21 Thread Ganesh Ranganathan
On Fri, Feb 21, 2014 at 4:43 PM, Dat Nguyen li...@ruby-forum.com wrote: Sublime Text is impressive coding editor. I use it for PHP development. But for Ruby on Rails I don't think it is a good choice. Instead, I use RubyMine (of course, it's not free): I use tmux+vim and it as good as any

[Rails] Background worker dynos on Rails using Heroku

2014-02-20 Thread Ganesh Ranganathan
Hi, I have a rails application that requires data from an API to run. Since the API is slow I am looking to have a background process run continuously and scrape the API for new messages and add it to the application database From some reading , a worker dyno seems to be the best way to achieve

Re: [Rails] Re: CSS Reference Lost in Some Cases

2014-02-20 Thread Ganesh Ranganathan
On Fri, Feb 21, 2014 at 2:08 AM, Farsheed Bamboat li...@ruby-forum.comwrote: Thanks everyone. I moved the CSS file to app/assets/stylesheets and used the following syntax but it still did not fix the issue. %= stylesheet_link_tag 'ammos_new' % Is this a known/common issue? Is it not

Re: [Rails] Compiled assets are not found in production mode run locally

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 9:29 PM, Javix s.camb...@gmail.com wrote: Run in production: rails s -e production There are no CSS fiound ! This is strange. This issue can occur for individual css and js files but application.css and application.js should be added by default. For other files you

Re: [Rails] Re: Get database filled with data only one time?

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 9:32 PM, Luca Fuhl li...@ruby-forum.com wrote: But how does derive from ActiveRecord solve my problem? I want to instance an object of the model i generated and that in an file that isn't a controller, since i do this only one time. The inheritance from ActiveRecord

Re: [Rails] CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Tue, Feb 18, 2014 at 11:58 PM, Farsheed Bamboat li...@ruby-forum.comwrote: % content_for :head do % link rel=stylesheet type=text/css href=/stylesheets/ammos_new.css % end % You should use the %= stylesheet_link_tag 'filename' % instead of including the link tag directly. Rails will

Re: [Rails] Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 12:51 AM, Farsheed Bamboat li...@ruby-forum.comwrote: Thanks Ganesh. I just tried that right now but the issue still persists. Can you share the _form.html.erb code for head section Does it not work on development or Production, or both? -- You received this message

Re: [Rails] Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 1:45 AM, Farsheed Bamboat li...@ruby-forum.comwrote: % content_for :head do % %= stylesheet_link_tag '/stylesheets/ammos_new.css' % % end % Try % content_for :head do % %= stylesheet_link_tag 'ammos_new' % % end % -- You received this message because you are

Re: [Rails] Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 2:23 AM, Farsheed Bamboat li...@ruby-forum.comwrote: No difference. :( Have you placed the css file in the app/assets/stylesheets folder? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this

Re: [Rails] Re: Re: Re: Re: CSS Reference Lost in Some Cases

2014-02-18 Thread Ganesh Ranganathan
On Wed, Feb 19, 2014 at 3:11 AM, Farsheed Bamboat li...@ruby-forum.comwrote: No, the CSS files are all in /public/stylesheets If you are using Rails 3.2 (?) and above, stylesheets need to be in app/assets/stylesheets folder. -- You received this message because you are subscribed to the

[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