[Rails] Using rack-offline with the asset pipeline (images not cached)

2013-04-22 Thread Paul
Hi, I've been trying to incorporate https://github.com/wycats/rack-offline into my app. I followed the example in the readme that shows how to cache application.css and application.js files and that works. When I go to my browser in production mode, though, and turn off my network connection, the

Re: [Rails] [JOBS] Looking for a RoR Developer with 5+ years experience (NYC)

2013-04-22 Thread thiagocifani
Green card or us citizen only?  — Sent from Mailbox for iPhone On Mon, Apr 22, 2013 at 5:39 PM, Aubrey Backman wrote: > *Company: Digital Media – Global > Position: Web Services Engineer – Ruby/Javascript * > *Location: New York City* > *Position: Right to Hire (Full time starting January 1 2014

Re: [Rails] user has ability to suggest to admin

2013-04-22 Thread Colin Law
On 22 April 2013 16:06, Aldila Iswari wrote: > hi all. I am having a problem, it would be really nice, if guys could help > me. > I am making an app, a simple one. There is a table, lets just say it is a > recipe table. This app is devided into an admin page and user page. the > admin can edit, de

[Rails] Multiple namespaces for an Engine

2013-04-22 Thread Ewout Kleinsmann
*Disclaimer: i'm fairly new to Rails and I don't know whether this would be desired behavior.* I want to make an Engine that is isolated by two namespaces. That is, let say for example I'd like to make an Engine whose classes all live in: Car::BMW And thus, my models for example should be pl

[Rails] We are offering the following opportunitie in our office in Campinas, SP, Brazil: Ruby Developer

2013-04-22 Thread Mariana Oshika
Strong problem solving skills Full proficiency with Ruby 1.9 Passion for numbers, games and technology Strong confort using Git Experience with NoSQL databases Experience with the SCRUM development process Knowledge of web related technologies (HTML/XHTML, HTTP, SOAP, REST, TCP/IP, DNS) B

[Rails] [JOBS] Looking for a RoR Developer with 5+ years experience (NYC)

2013-04-22 Thread Aubrey Backman
*Company: Digital Media – Global Position: Web Services Engineer – Ruby/Javascript * *Location: New York City* *Position: Right to Hire (Full time starting January 1 2014)* Senior software engineer with at least 5 years of development experience using technologies including Ruby on Rails and Java

Re: [Rails] Re: how to pass parameter to pdf(wicked_pdf)

2013-04-22 Thread Colin Law
On 22 April 2013 21:27, Fahim Patel wrote: Please remember to quote the previous reply so that we know what you are replying to. Also please don't top post, insert your reply at appropriate points in previous message. Thanks > when user select cars then click next then on next page he/she sele

[Rails] Re: enforce https for every page

2013-04-22 Thread Scott Tamosunas
On a recent project, I handled this through a before_filter as I wanted unauthenticated pages to handle http and authenticated pages to always redirect to https. My ApplicationController looked something like the below. Note: I had to write my own authentication routines rather than use somethi

[Rails] Re: How to convert data MongoDB to Sqlite3

2013-04-22 Thread Scott Tamosunas
You should be able to use MongoDB and Rails app with all the test frameworks you're used to. Rspec, TestUnit, etc. Are you using an ORM like MongoMapper or Mongoid? In terms of data, it's not straightforward to migrate from a NoSQL to SQL db. If you really want to do that, you'll probably have

[Rails] Announcement of new ROR application

2013-04-22 Thread greenrosaror
I have just deployed a new ROR application via DreanHost. www.greenrosa.com The purpose of the site is to encourage ROR collaborative effort toward the development of generic web-site types, like petitions, billboards, e-commerce, image presentation, etc.. Would very much appreciate feedback..

[Rails] user has ability to suggest to admin

2013-04-22 Thread Aldila Iswari
hi all. I am having a problem, it would be really nice, if guys could help me. I am making an app, a simple one. There is a table, lets just say it is a recipe table. This app is devided into an admin page and user page. the admin can edit, delete and add new recipe, and user can only search the

[Rails] setter method in rails 4 beta 1

2013-04-22 Thread Ashwin Kumar
I have a virtual attribute 'tags' , and defined a setter method for it tags=(val). My setter method is not called while creating a Article. I copied my rails 3.2.11 code in rails 4, it was perfectly working in former. I want to know who can i use setter method for virtual attribute in rails 4.

[Rails] Rails 3.2 initializers load order causes failures when config.cache_clases == true

2013-04-22 Thread Jason Waldrip
Hey all, we are in the midst of upgrading our app from rails 3.0.20 to rails 3.2.13. As part of this upgrade we are experiencing an issue in our test suite in which when cache classes is turned on our models are loading before our initializers. One of our initializers sets up some constants tha

[Rails] Re: how to pass parameter to pdf(wicked_pdf)

2013-04-22 Thread Fahim Patel
when user select cars then click next then on next page he/she select color for car's . On this i have given one link which will open pdf. What i reqire is how to pass count of cars on PDF ? Hope you understood. https://github.com/mileszs/wicked_pdf i am following above link On Tuesday, April 23

Re: [Rails] how to pass parameter to pdf(wicked_pdf)

2013-04-22 Thread Colin Law
On 22 April 2013 20:58, Fahim Patel wrote: > I am following below link. > https://github.com/mileszs/wicked_pdf What sort of parameters? Please give a (simple) example of what you are trying to achieve. We are not telepathic (at least I am not). Colin > > Thanks in advance. > > -- > You recei

[Rails] how to pass parameter to pdf(wicked_pdf)

2013-04-22 Thread Fahim Patel
I am following below link. https://github.com/mileszs/wicked_pdf Thanks in 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 rubyonrails-talk+unsu

[Rails] Engine isolated by multiple namespaces.

2013-04-22 Thread Ewout K.
I want to make an Engine that is isolated by two namespaces. That is, let say for example I'd like to make an Engine whose classes all live in: Car::BMW And thus, my models for example should be placed in: app/models/car/bmw/ And my tables should be prefixed by for example: car_bmw_ I tried t

[Rails] Re: How to use Json

2013-04-22 Thread Robert Walker
lekha p. wrote in post #1106474: > Please Help, > > Hi can anybody show me some simple code which shows how using json in > Rails application. Example 1: Rails bult-in JSON support: 1. rails generate scaffold User first_name:string last_name:string 2. rake db:migrate 3. rails s 4. Goto: http://lo

Re: [Rails] Learning ROR testing

2013-04-22 Thread tamouse mailing lists
On Apr 22, 2013 6:52 AM, "Javier Quarite" wrote: > > > On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: >> >> The RSpec book from pragprog actually spends a bit of time discussing rails testing using both cucumber and rspec, but i would not call it definiti

Re: [Rails] Learning ROR testing

2013-04-22 Thread Javier Quarite
On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > The RSpec book from pragprog actually spends a bit of time discussing > rails testing using both cucumber and rspec, but i would not call it > definitive. > Have you used mini test? Do you recommend rspec

Re: [Rails] after assets compiled locally bootstrap drop-down list does not work, no errors seen

2013-04-22 Thread Serguei Cambour
On 22 Apr 2013, at 12:53, Jordon Bedwell wrote: > On Mon, Apr 22, 2013 at 5:22 AM, Serguei Cambour wrote: > > On 22 Apr 2013, at 12:16, Jordon Bedwell wrote: > >> On Mon, Apr 22, 2013 at 5:06 AM, Javix wrote: >> The application was deplyed without problems and works fine at Heroku. >> The p

Re: [Rails] after assets compiled locally bootstrap drop-down list does not work, no errors seen

2013-04-22 Thread Jordon Bedwell
On Mon, Apr 22, 2013 at 5:22 AM, Serguei Cambour wrote: > > On 22 Apr 2013, at 12:16, Jordon Bedwell wrote: > > On Mon, Apr 22, 2013 at 5:06 AM, Javix wrote: > >> The application was deplyed without problems and works fine at Heroku. >> The problem is that it does not work properly in developmen

Re: [Rails] after assets compiled locally bootstrap drop-down list does not work, no errors seen

2013-04-22 Thread Serguei Cambour
On 22 Apr 2013, at 12:16, Jordon Bedwell wrote: > On Mon, Apr 22, 2013 at 5:06 AM, Javix wrote: > The application was deplyed without problems and works fine at Heroku. > The problem is that it does not work properly in development (locally). For > example, the bootstrap drop-dwpn list for use

Re: [Rails] after assets compiled locally bootstrap drop-down list does not work, no errors seen

2013-04-22 Thread Jordon Bedwell
On Mon, Apr 22, 2013 at 5:06 AM, Javix wrote: > The application was deplyed without problems and works fine at Heroku. > The problem is that it does not work properly in development (locally). > For example, the bootstrap drop-dwpn list for user settings does not work > any more, no errors in the

[Rails] after assets compiled locally bootstrap drop-down list does not work, no errors seen

2013-04-22 Thread Javix
As advised at Heroku (https://devcenter.heroku.com/articles/rails-asset-pipeline), I modified the config settings in application.rb file: config.assets.initialize_on_precompile=false then compiled assets locally: RAILS_ENV=production bundle exec rake assets:precompile then pushed it to the gi