Re: [Rails] An article: interest in rails is waning

2017-07-27 Thread Ankur Gera
convincing enterprise to use it more and more. It's the same way Rails community solved the problem of installing gems and their dependencies via Bundler. I might be wrong with my observation. Will be more than happy to further get enlightened. Thanks & Regards, Ankur Gera On Thu, Jul 27, 201

[Rails] Re: [Newbie] Help with Simple Association Question

2015-02-12 Thread Ankur Sethi
which was very helpful for me: https://dl.dropboxusercontent.com/u/766146/ruby-on-rails-data-relationships.png Ankur On Wednesday, February 11, 2015 at 12:19:35 PM UTC-5, Brian Scramlin wrote: > > Greetings RoR Friends! I would SO APPRECIATE your help with a question. I > have read

Re: [Rails] Rendering unique cached page per user in Fragment Caching

2014-12-30 Thread Ankur Kumar
r_create, :sweep alias_method :after_update, :sweep alias_method :after_destroy,:sweep end Devise "current_user" is accessible in all the above files. -- Regards, Ankur On Tue, Dec 23, 2014 at 7:19 PM, Colin Law wrote: > On 23 December 2014 at 13:42, Ankur Kumar wrote: >

[Rails] Rendering unique cached page per user in Fragment Caching

2014-12-23 Thread Ankur Kumar
user? I read about some caching methods below but not sure how to create/retrieve a unique cached page. http://api.rubyonrails.org/classes/ActionController/Caching/Fragments.html Thanks. -- Regards, Ankur -- You received this message because you are subscribed to the Google Groups "Rub

[Rails] Delayed Job Gem Dependency on Columnize Gem

2014-12-04 Thread Ankur Kumar
rating this gem earlier are here and this page doesn't talk about this dependency either. http://junkheap.net/blog/2013/05/20/elastic-beanstalk-post-deployment-scripts/ Did anyone else face this issue? Thanks. -- Regards, Ankur Kumar | +91-9739213628 www.bigbhk.com <https://bigbhk.co

Re: [Rails] Build report on Ruby on Rails

2014-12-04 Thread Ankur Kumar
I have used PDFKit gem and it has worked well for me. -- Regards, Ankur Kumar www.bigbhk.com <https://bigbhk.com> *Lin <http://in.linkedin.com/in/specialankur> | Tw <http://twitter.com/#%21/tweet2ankur> | Fb <http://www.facebook.com/specialankur>* *What is BigB

[Rails] Reading I18n file content in rails controller

2014-11-15 Thread Ankur Kumar
views/dashboard/index.html.erb* <%=t :read_text%> --- I want to access *read_text: *in *app/controllers/dashboard_controller.rb* Thanks. -- Regards, Ankur -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe fro

[Rails] Support for Posiflex Thermal Printers in a Rails app

2014-09-09 Thread Ankur Kumar
b.com/michaelfranzl/ruby-escper> gem for this? Please guide if there are better ways to achieve this. Thanks. -- Regards, Ankur -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receivin

[Rails] Re: Whenever crontab execution failure on AWS EC2 deployment

2014-06-30 Thread Ankur Kumar
I observed there is a typo in command, it should be : bundle exec whenever --update-crontab --set environment=production. Trying again with this command. Thanks. -- Regards, Ankur On Mon, Jun 30, 2014 at 1:35 PM, Ankur Kumar wrote: > > I am using whenever gem and I defined 'whene

[Rails] Whenever crontab execution failure on AWS EC2 deployment

2014-06-30 Thread Ankur Kumar
beddedPostBuild', 'Hook-EnactAppDeploy', 'Hook-PostAppDeploy'], 'returncode': 1, 'events': [], 'msg': '*Error occurred during build: Command 20whenever_task failed*\n'}], 'api_version': '1.0'} Any help on this?

Re: [Rails] Re: Not able to test cron job in development using Whenever gem in rails 3

2014-06-07 Thread Ankur Kumar
ry 1.minute do runner "Cron.sendAutomaticsSMS()" end ***** Please help me with this. Thanks. -- Regards, Ankur On Fri, May 30, 2014 at 9:16 PM, Ankur Kumar wrote: > > Thanks Matt for your reply! Unfortunately, I don't see any log file in > suggested location

Re: [Rails] Re: Not able to test cron job in development using Whenever gem in rails 3

2014-05-30 Thread Ankur Kumar
lowed all the steps for integration. Thanks. -- Regards, Ankur On Thu, May 29, 2014 at 9:36 PM, Matt Jones wrote: > > > On Thursday, 29 May 2014 00:55:59 UTC-5, Ankur wrote: > >> >> Any help on this will be greatly appreciated! Thanks. >> >> -- >> Regards,

[Rails] Re: Not able to test cron job in development using Whenever gem in rails 3

2014-05-28 Thread Ankur Kumar
Any help on this will be greatly appreciated! Thanks. -- Regards, Ankur On Wed, May 28, 2014 at 10:18 AM, Ankur Kumar wrote: > > I did the following to implement cron jobs in rails 3 using a "runner" > instead of a rake task. > > *Step 1:* I have whenever gem insta

[Rails] Not able to test cron job in development using Whenever gem in rails 3

2014-05-27 Thread Ankur Kumar
defined in sendAutomaticsSMS() method to execute but the cron doesn't even enter this method. I don't see any error in log/development.log and there is no log/cron.log in my rails app. Posted this question on Stackoverflow<http://stackoverflow.com/questions/23880580/not-able-to-t

[Rails] Ticketing Gem in Rails

2014-05-22 Thread Ankur Kumar
good gems to achieve this objective? -- Regards, Ankur -- 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...@googlegrou

[Rails] Devise + Switch User : How to avoid update in trackable devise columns for a switch user?

2014-05-02 Thread Ankur Kumar
account through switch_user. How can I achieve this? Thanks. -- Regards, Ankur -- 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+unsubsc

[Rails] Different devise confirmation behaviour for same model

2014-04-25 Thread Ankur Kumar
e this. Thanks. -- Regards, Ankur -- 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 grou

[Rails] Re: Not able to save PDF Kit file to a Paperclip attachment in Rails 3.2.15

2014-01-30 Thread Ankur Kumar
class my_model_instance = MyModel.new file = File.open(file_path) my_model_instance.attachment = file file.close my_model_instance.save! Thanks. -- Regards, Ankur On 31 January 2014 01:35, Ankur Kumar wrote: > > I am trying to save a pdf file (generated using Rails PDFK

[Rails] Not able to save PDF Kit file to a Paperclip attachment in Rails 3.2.15

2014-01-30 Thread Ankur Kumar
t.string "resume_attachment_file_name" t.string "resume_attachment_content_type" t.integer "resume_attachment_file_size" t.datetime "resume_attachment_updated_at" Thanks. Regards, Ankur -- You received this message because you are subscribed to the Googl

Re: [Rails] Simple reporting gem in rails

2014-01-13 Thread Ankur Kumar
Thanks a lot, Thiago. I will try out these. -- Regards, Ankur On 13 January 2014 03:18, Thiago Cifani wrote: > PDF kit or wicked PDF are my best solution to turn HTML and CSS to PDF > files. You should took a look on those ones. > — > Sent from Mailbox <https://www.dropbox.c

[Rails] Simple reporting gem in rails

2014-01-12 Thread Ankur Kumar
Report are inactive. Thanks. -- Regards, Ankur -- 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 po

Re: [Rails] Re: Form data not uploading to sqlite database

2013-11-30 Thread Ankur Kumar
(67.2ms) Completed 200 OK in 97.6ms (Views: 93.5ms | ActiveRecord: 0.4ms) Also, I missed adding create action in controller earlier, have added it now: * def create* * Task.create params[:task]* * redirect_to :back* * end* Thanks. -- Regards, Ankur On Sat, Nov 30, 2013 at 3:09 PM, Freder

[Rails] Form data not uploading to sqlite database

2013-11-29 Thread Ankur Kumar
t; false t.string "name" end *app/models/task.rb* class Task < ActiveRecord::Base # attr_accessible :title, :body end I have done db migration and db schema exists for table but "select * from tasks" doesn't return any rows and therefore UI doesn't show a

Re: [Rails] Error while using a Named Route for navigation

2013-11-26 Thread Ankur Kumar
I have fixed this issue. The 'match' statement needs to be outside the resource block in routes.rb. Rest everything remains the same. Thanks. Sent from Galaxy R, please ignore typo or brevity On Nov 27, 2013 3:41 AM, "Ankur" wrote: > > > I have *home.html.e

[Rails] Error while using a Named Route for navigation

2013-11-26 Thread Ankur
I have *home.html.erb* file which has a link for *course.html.erb *file using *link_to*. I have defined a named route for this navigation. On clicking the link, I get an error as shown below. Looks like the named route is not accessible in the view. Is my routes.rb entry correct? I am not sur

[Rails] Getting the controller Name dynamically.

2012-09-26 Thread Ankur Jain
k_to content_tag(:span, "New Question") ,{ :controller => @section.template.template_class.downcase ,:action=>:new, :section=>@ section.id } %> What should I put so that the controller is properly recognized. Thanks for your help in advance. Ankur -- You received thi

Re: [Rails] Re: Pagination for static pages

2012-06-17 Thread Ankur Gera
Try out ContentSlider.js ... On Jun 17, 2012 2:16 PM, "mohitnegi" wrote: > Pagination on Active Record and with arrays are pretty common and i have > used that, I wanted to know about pagination on the content of yaml > document. > > On Friday, June 15, 2012 7:26:21 PM UTC+5:30, paul h wrote: >>

Re: [Rails] Re: Trivial Rails Question, I am unable to explain the behavior

2012-04-20 Thread Ankur Jain
e: >> >> I don't have rails in front of me, but looks like there may be a problem >> with implied parentheses. Have you tried things like: >> *@grades = Grade.all() {|grade| Worksheet.find(:all,:conditions=> >> ['grade_id =?',grade.id]).count > 0

[Rails] Trivial Rails Question, I am unable to explain the behavior

2012-04-19 Thread Ankur Jain
Following 2 statements look identical to me, however the first one returns only one object but the second one returns correctly an array of 4 objects. What is happening here is simple, I get all the Grade objects (1st one using Grade.find(:all) and second one using Grade.all), and then filter out

[Rails] Re: Horizontal partitioning of database to scale the ROR application

2010-01-08 Thread Ankur
Masochism can solve your problem definitely(An easy solution for Ruby on Rails applications to work in a replicated database environment) http://github.com/technoweenie/masochism ~ Ankur Gupta Hyderabad, India On Jan 8, 2:20 pm, Ankit Varshney wrote: > I want to do horizontal partitioning

[Rails] Re: Relationship in Models

2010-01-07 Thread Ankur
ces will be a array of pr_resources Now you can fetch any employee(resource) and its role associated with project id 1. for eg. for any project_resource: resource = pr_resource.resource role = pr_resource.role Thanks, -- ~ Ankur Gupta Company: www.innozon.com, Hyderabad On Jan 7, 10