[Rails] Re: Offline rails application

2016-07-31 Thread Neo Elit
I think you could look at patterns of a progressive web application. https://medium.com/@AdityaPunjani/building-flipkart-lite-a-progressive-web-app-2c211e641883#.4zqhjwuvx flipkart mobile web application makes use of this. That's a life changing pattern for web apps but I

[Rails] Re: Rails 4.2.6 fresh_when not functioning properly in passenger-standalone production

2016-05-18 Thread Neo Elit
I got the issue. However the issue had nothing to do with passenger or rails. My ISP is using some proxy and was removing the If-None-Match headers. Tried another service and is working normally. On Tuesday, May 17, 2016 at 11:27:22 AM UTC+5:30, Neo Elit wrote: > > I'm trying

[Rails] Rails 4.2.6 fresh_when not functioning properly in passenger-standalone production

2016-05-16 Thread Neo Elit
I'm trying to provide etag and last-modified headers for static page. Locally it works fine and browser gets a 304, however on server with passenger standalone it's not providing a 304. https://gist.github.com/NeoElit/dd8d9f22142db12cee077723b7cd8bf5 >From http://stackoverflow.com/questions/1869

[Rails] Re: Routing error

2016-05-12 Thread Neo Elit
Your PapTagsController should be inside monitor module. I don't how it worked in local server without that. file: /app/controllers/monitor/pap_tags_controller.rb module Monitor class PapTagsController < ApplicationController ... end end On Thursday, May 12, 2016 at 6:19:23 PM UTC+5:30

[Rails] AWS Elastic Beanstalk - Passenger Standalone - Rails not setting asset cache headers

2016-05-12 Thread Neo Elit
I have a rails application running on AWS EB with passenger standalone. However the asset served doesn't seem to set cache headers. What is the preferred way to do this? I tried running standalone in a single instance and it's properly setting cache headers. However that's not the case in aws ela

[Rails] Re: Re: Re: Re: Session record not getting deleted

2014-08-24 Thread Bharath Neo
Colin Law wrote in post #1155842: > On 24 August 2014 17:32, Bharath Neo wrote: >>> Colin >> >> Okie. This is what I see from how its happening: >> >> 1. There is a login page >> 2. When login page is loaded I see an entry for a session put in. > &

[Rails] Re: Re: Re: Session record not getting deleted

2014-08-24 Thread Bharath Neo
Colin Law wrote in post #1155762: > On 23 August 2014 06:32, Bharath Neo wrote: >> The problem is that I want to hold sessions who have not logged out. And >> clear sessions who have not logged in. Sessions are created >> automatically by rails when the login page loads its

[Rails] Re: Re: Session record not getting deleted

2014-08-22 Thread Bharath Neo
Colin Law wrote in post #1154372: > On 5 August 2014 23:05, Bharath Neo wrote: >> Okie, assuming its done manually, is there a way to at least figure out >> which of the sessions are for logged out users ?? > > Delete it explicitly when a user logs out, then you know that

[Rails] Re: Session record not getting deleted

2014-08-05 Thread Bharath Neo
Okie, assuming its done manually, is there a way to at least figure out which of the sessions are for logged out users ?? -- 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 thi

[Rails] Re: Session record not getting deleted

2014-08-04 Thread Bharath Neo
Thanks Robert for the reply. Nope, not from documentation. Its just basic thing that if the record is created by rails, it needs to be cleaned up by rails (why would it need to be cleaned up out of a different path) ? I remember reading this stackoverflow comment as well which mentioned that i

[Rails] Session record not getting deleted

2014-08-04 Thread Bharath Neo
Hi, I have been asking this question in multiple forums like stackexchange but have not received a solution or proper help. Any help here is appreciated. I have a rails app with a session store database (mysql). When I want to clear a session, I reset the session variables and call reset_session.

[Rails] Ruby on Rails Tutorial Chapter 6 RSpec tests failing

2012-05-24 Thread Neo
d end - Here is my gemfile: source 'https://rubygems.org' gem 'rails', '3.2.3' gem 'bootstrap-sass', '2.0.0' gem 'bcrypt-ruby', '3.0.1' group :development, :test do gem '

[Rails] Re: "rake db:migrate" generates error

2009-07-28 Thread NEO
it displays error "no such sqlite found.. " thanks for the reply.. On Jul 28, 3:32 pm, Frederick Cheung wrote: > On Jul 28, 3:38 am, NEO wrote: > > > Hi. When after runnig scaffold script server command I run the "rake > > db:migrate", it displays no s

[Rails] "rake db:migrate" generates error

2009-07-28 Thread NEO
Hi. When after runnig scaffold script server command I run the "rake db:migrate", it displays no such sqlite found. I have already bound the sqlite with ruby successfully and yet it displays error.. Please help me.. thanks --~--~-~--~~~---~--~~ You received this me

[Rails] Re: How to hook ActionController when plugin init in development mode?

2009-05-26 Thread Neo
试试ActionController::Base.send :inlcude,AcPlugin 2009/5/27 冷血儿 > Hi all~ > I want to add some methods to ActionController. And I generate a > plugin. Although this example looks like strange. > > init.rb > require "ac_plugin" > ApplicationController.send(:include, AcPlugin) > > lib/ac_plugin.rb >

[Rails] Re: find_by...

2009-04-29 Thread Neo
you can use to_param in the model witch is a screencast in www.railscasts.com 2009/4/30 Frederick Cheung > > > > On Apr 29, 10:28 pm, slava wrote: > > Hello, > > I am trying to construct a lookup based on params submited. > > possible urls.. > > /gadgets?product_id=1 > > /gadgets?product_id=1&pr

[Rails] Re: Installing rails in a subfolder

2009-04-08 Thread Neo
capistrano also can do it for you its has a video in www.railscasts.com best 2009/4/9 Kevin Elliott > > You certainly can. You'll want to look into mod_rails (Passenger), as > it would be the easiest to set up in this fashion. The old school way > would be to use FastCGI, but it's been generall

[Rails] Re: create_table with unique combo

2009-04-08 Thread Neo
hi slave,you can do it use the connection method of migration use it like ActiveRecord::Base.connection_pool.checkout 2009/4/9 slava > > I need to create a table replacing default integer id with a string id > and making a combo of (id and version) unique primary key. Here is > what I've got so