[Rails] Session in Rails_API gem

2013-09-25 Thread Ari Firmanto
Hi Rails Guru, Currently I am working i my project, and that project using rails_api gem. I want to add session management for authentication, but it seems the session does not working. Here is my configuration in config/initializer/session_store.rb: Pmcapi::Application.config.session_store

[Rails] Asset Pipeline Serving Stale Assets

2013-07-03 Thread Ari King
and added config.serve_static_assets = false to the development.rb file. As anyone else experienced this issue? If yes, how did you solve it? Thanks. -Ari -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] How to Include Associations in #as_json

2012-09-28 Thread Ari King
. def as_json(options={}) super(:include = [{:office = {:only = [:company, :street, :city, :state, :zip_code]}}]) end Thanks. -Ari -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Nested Model Mass Assignment Error

2012-09-19 Thread Ari King
Hi, I have a many-to-many relationship via a join table. When I attempt to set the values (i.e. the relationship) in the join table via the Rails console I get the following error, does anyone know what could be wrong? Thanks. Note: I have set attr_accessible -- see Grade model below.

[Rails] Rendering Action

2012-07-16 Thread Ari King
. -Ari -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr

[Rails] HBase and Rails

2012-07-11 Thread Ari King
as the database? 3. Was it difficult moving from development/testing to production? Thanks. -Ari -- 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 post to this group, send email to rubyonrails-talk

[Rails] XSendfile via Nginx

2012-05-07 Thread Ari King
nginx configuration at http://pastebin.com/VA4QFM35 Does anyone know what could be wrong? Note: I have activated X-Accel-Redirect in rails by: # Rails configuration (e.g. config/environments/production.rb) config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' Thanks. Ari -- Posted via

[Rails] Could not find a JavaScript runtime -- Bundler Rbenv

2012-05-03 Thread Ari King
/.rbenv/shims:$HOME/.rbenv/bin:$HOME/.rbenv/versions/1.9.3-p125/bin:/home/ari/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems:$PATH sh -c 'cd /home/ari/www/tutelage/releases/20120504012619 bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile' on prodserv1 Does anyone know why

[Rails] Install Gems from Vendor Cache

2012-02-10 Thread Ari King
directory. Could not find libv8-3.3.10.4 in any of the sources libv8-3.3.10.4 is definitely located in the vendor cache. Does anyone know why bundler won't install the gems from the cache? The full (bundler) command Capistrano executes is below. cd /home/ari/apps/air/releases/20120209214139

[Rails] File Type Extensions Missing in Uploaded Files

2012-02-07 Thread Ari King
the path and filename WITHOUT the dot, so the file can not be accessed. I've pasted the model that contains the attachment code at: http://pastebin.com/rhCJ5SKM Does anyone know what could be wrong? Thanks. -Ari -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] problem working on old rails app

2011-12-26 Thread ari g.
I got: `gem_original_require': no such file to load I've looked through code and searched everywhere but haven't found anything that helps me understand what's going on. I'm going to keep looking but thought I'd post in case someone's got a clue (thanks!). Thanks a pile ahead of time.. ~ari

[Rails] Re: problem working on old rails app

2011-12-26 Thread ari g.
in Rails 3.1.3. Hopefully it'll still work but I think I'm going to pause a bit in my efforts with that gem_original_require error and look at what the web has to say about legacy (i.e. old) rails apps. Thanks again! ~ari -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Re: problem working on old rails app

2011-12-26 Thread ari g.
goodness gracious I think the app is written in rails 1.2.3 because I see this in my environment.rb file: RAILS_GEM_VERSION = '1.2.3' I thought I was up to 2.0 but I may not have committed those changes to rubyforge's svn. Hmm... I'm going to try your trick with passing gem install a version

[Rails] Re: problem working on old rails app

2011-12-26 Thread ari g.
So now I'm at rails 1.2.3 (when I do a 'rails --version' that's what I get). Only trick is that now I'm getting: vendor/rails/activesupport/lib/active_support/dependencies.rb:488:in `load': no such file to load -- mongrel_rails (MissingSourceFile) I'm going to start looking into it but I

[Rails] Re: problem working on old rails app

2011-12-26 Thread ari g.
with every line quoting dependencies.rb ;) Surprisingly, this error isn't showing up much in google searches. I'll try rewording it. Maybe I need to rever to an older version of mongrel? Heck, an older version of everything? Thanks and cheers, ~ari ps. Wouldn't it be handy if you could

[Rails] Re: problem working on old rails app

2011-12-26 Thread ari g.
Holy camoley it's working. Well, my app isn't showing but rails is booting, the servers up and I get a nice page when I go to http://0.0.0.0:3000 I got the answer after searching for no such file mongrel_rails. This page

[Rails] How do I run the activerecord unit test suite as part of a dependent gem's test suite?

2011-05-05 Thread Ari
Hi all, I think I have found a bug in a gem that extends activerecord (compound_primary_keys). The test case it breaks is already part of the very large and comprehensive suite in the activerecord gem itself. I would like to patch the gem to allow a user to run the standard activerecord unit

[Rails] [ANN] Announcing sorcery-0.1.0

2011-02-01 Thread Noam Ben ari
Hi, I'm please to announce, after 4 weeks of development, that I've just released the first version of sorcery gem: https://github.com/NoamB/sorcery sorcery is an authentication gem plugin for Rails 3 inspired by Authlogic, Devise and restful-authentication. You can see how it is used with an

[Rails] how to include view helpers in both action_controller and action_mailer templates (rails 3)

2010-11-19 Thread Ari
There's some terse documentation that helpers can be shared between action_controller and action_mailer, but I have yet to find an example of how this is done. Right now, I'm trying to use a markdown method in the view templates for both. I have put the method in the application helper

[Rails] Re: Having some trouble with loop in a form

2009-09-06 Thread Ari Lipsey
Again, thanks for the replies. I never said I don't do it. But my issue doesn't work with any browser at the moment, and even if I eliminate all the td elements (or the entire table), the same problem persists. The problem is in the ruby code, not the markup html yet, which is why I elect to do it

[Rails] Engine classes don't auto load in production environment (Rails 2.3.2 + smerf plugin)

2009-07-18 Thread Ari
the production environment. It works fine in development. Source is here if that helps: git://assembly.cornell.edu/git/survey.git Any advice appreciated. -Ari --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Plugin classes won't load

2009-07-16 Thread Ari
Hi all, I've been working on an application which uses the smerf plugin (Simple MEta Forms). It works fine in the development environment, but in the production environment it seems unable to autoload anything from the plugin directory: models, controllers, etc. I'm thinking there must be some

[Rails] Re: Problem with rake gems:install

2009-06-29 Thread Ari Maniatis
not be sidetracked by loading everything it comes across on the class path * better error reporting which detects this condition and reports where the problem might lie Thank you again for your help. Ari Maniatis --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Problem with rake gems:install

2009-06-28 Thread Ari Maniatis
of the error message you're seeing. I have exactly the same problem with Rails 2.3.2. Since it is an open source project, you can easily grab it from here and verify for yourself the problem: http://github.com/ari/clockingit/tree/master Ari Maniatis

[Rails] Rails 2.2 + Apache 2.2 + RewriteBase /app = broken

2009-02-27 Thread Ari
I'm trying to run a rails app under an alias like this: Alias /app /var/www/railsapp/public RewriteBase /app ... I am using the same configuration that has worked for the app under Rails 1, but since I upgraded it to the latest version I get: The page you were looking for doesn't exist.

[Rails] Wierd to_a issue...

2009-02-27 Thread Ari
When I go to save a model, I get tons of these: /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ associations/association_proxy.rb:214: warning: default `to_a' will be obsolete It looks like the warning is coming from method_missing! Even stranger: the model saves correctly in

[Rails] module inheritance and private methods

2009-01-24 Thread Ari Kast
I'm puzzling through the nuances of Ruby's module inclusion mechanism, both inside and outside of Rails. Forgive the long text, but the behavior is truly strange and I don't know what to make of it. I wrote some software that uses a 3rd party library (midilib) to convert files from one format