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
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
.
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
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.
.
-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
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
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
/.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
27 matches
Mail list logo