Displaying 20 results from an estimated 70000 matches similar to: "Moneta or Rails key store value with file"
2012 Jul 03
4
Rails compatibility with Ubuntu
Hi All,
I want to know the compatibility of Ubuntu with Rails. Anyone know
which Ubuntu version support Rails 2.x and Rails 3.x.
-- 
Mandeep Kaur
http://mandeepsimak.wordpress.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
2011 Sep 27
1
Rails 3.1 assets path for video player Flash script 'player.swf'
I was using a Flash video player within a previous Rails version app
Moving to Rails 3.1.0 , I dob''t know where I should put the script ...
I tried to move it into an  app asset sub-directory
assets
- jwplayer
-  - player.swf
but this raises an error
"NetworkError: 406 Not Acceptable - http://localhost:3000/assets/jwplayer/player.swf"
player.swf
the flash script is given as a
2012 Aug 08
1
Memcache and Rails - Storing String as values.
Hello all,
I have been using Memcache with my rails application to store certain
key value pair.... I am using Dalli gem for the same... So Here''s what i
do from console:
require ''dalli''
dc = Dalli::Client.new(''remoteserver:11211'')
dc.set(''example_link'', "http://www.google.com")
=> true
value =
2010 May 28
1
cookie has key/value pairs and lost order after JSON decode
If a cookie has several items, and is encoded as JSON text as the value
of the cookie, the order is actually apparent in the cookie''s text
But if JSON.decode is used:
  ActiveSupport::JSON.decode(cookies[''item_list''])
and the result is actually in a hash, then the ordering is lost...
Is it true that if the original JSON object has an array of hashes (1
key and 1
2011 Jun 27
2
insert value of primary key into another field before record is saved
Hey all,
I created a seed task:
  def books!
    books = Book.where(:type_id =>
Type.find_by_name(''Fiction'')).order(''id'')
    books.each do |book|
      @books = 4.times.map do |i|
        subbook! "#{book.book_num}-#{i}".to_s, :book_state =>
BookState[:available].id, :book => book
      end
    end
    puts "log it:
2011 Nov 05
3
How to get Rails 3.1's Cache store (FileStore) to work with Rack::Sendfile
Hey - I need your input regarding a problem I''ve come across. I''ll first
explain what the problem is, and what I think the solution is. If I
misunderstood how things work, please let me know.
# The problem
I''m using Dragonfly (on-the-fly file processing) to serve images. Dragonfly
uses Rack::Cache to cache the processed images so subsequent requests are
served by
2010 Nov 18
0
Rails 3 upgrade - Custom cache store
I had a custom cache store set up in Rails 2.3.  I''m in the process of
upgrading to rails 3, but have run into a snag.  Before I had all the
setting in my environment.rb.  It would basically load a yaml file
with my server settings, and set up the store via config.cache_store.
It seemed like the correct place for this in Rails 3 was as an
initializer.  So I did basically the same thing,
2010 Sep 17
0
Key Value Json ActiveModel::Errors
Hi all,
I''m using Rails 3.0, and I have a model which validates if the
attribute :name is present. On my my views, I use Jquery to submit the
form which creates the model. If the name is not present, Rails
returns something like this Json:
[''Name is a required value'']
Is there a way to make it return something like this?
[''name'': ''Name is a
2012 Oct 06
2
Rails API Doc for Mail::Message?
Hi,
 
I am very new to Rails.  I am trying to delete an email that I have 
retrieved from a pop3 account.  I googled around but couldn''t find any 
thing on that topic.  I couldn''t find any API Doc either.  What do I need 
to do to delete an email?
-- 
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Jul 13
0
Unknown Method key? error in Rails 2.3.8 Unit testing
I was writing unit tests for my models for a while. After that I was
tweaking around and again continued writing unit tests.
Earlier all my unit tests were working - successfully. But now WHen I
run them, it gives me
Loaded suite unit/post_test
Started
EEEE
Finished in 0.112698 seconds.
  1) Error:
test_presence_of_body(PostTest):
NoMethodError: undefined method `key?'' for
2014 May 15
0
composite primary key - Rails 4.1
Hi,
  I am facing issue with composite primary key
  In my gem file I have the below entries -
  gem 'rails', '>= 4.1.0.rc2'
  gem 'mysql2'
  gem 'rb-readline', "~> 0.5.1"
  gem 'sdoc', '~> 0.4.0',          group: :doc
  gem 'spring',        group: :development
  gem 'bcrypt', '~> 3.1.7'
  gem
2011 Feb 27
10
How to store the same key multi times in a Hash ?
given an Arra tags[]
I need to produce a resulting Hash as following ..
{ "$in" => [tags[0]], "$in" =>[tags[1], ...}
in which the key should be always the same and the value being an
Array
I tried this :
         myHash = {}
         tags.each do |tag|
           h = {"$in" => [tag]}
           myHash.merge!(h)
         end
but the merge! is only 
2012 Apr 19
2
method value passing in rails
in my ruby on rails application, i have one controller 
class HomeController < ApplicationController
def home  
   puts "name.....#{@name}" 
  end
  def branch
      *//HERE  HAVE TO GET THE ABOVE FUNCTION VALUE  @name*   
  end 
end
What am trying to do, i have to get the @name value  in method branch. i 
could show the value in function home, but i didn''t get that in
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler.
I just tried to use the following:
script/generate uploader Avatar
The following error is coming back:
NOTE: Gem.cache is deprecated, use Gem::source_index. It will be
removed on or after 2011-08-01.
Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/
rails_generator/lookup.rb:234
.
Couldn''t find
2009 Dec 09
1
how to send mail through ruby on rails
Plz tell me the code to send mail from ruby on rails.I have googled
many times but couldn''t find a proper solution.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Apr 07
3
Recommendation for searching with regards to timestamp & foreign key attributes
hi guys,
   I need a recommendation for searching with regards to timestamp &
foreign key attributes. Sounds
a bit too much but here''s an example.
  Suppose we have a "blog" object. It has many attributes such as
- title
- content
- status_id
- created_at
- updated_at
  There are also "status" objects which have the following statuses,
"new",
2011 May 13
2
Rails 3 Forces HTML Escape of Forms
I have a legacy application I ported from Rails 2.x. I found that the
escaping was occurring where it shouldn''t, like in creation of forms,
and I couldn''t turn it off. I found two mechanisms that should have
disabled it, a function safe_html, which is supposed to mark a string
as not needing to be escaped. The other is raw, which similarly
indicates that a string should be output
2009 Nov 20
3
Ensuring that foreign key is valid
I am trying to set up a validation in a model to ensure that a record
can''t be saved unless the foreign key it belongs_to is a valid record.
My model says:
    class Admin < ActiveRecord::Base
	validates_presence_of :user_id
	validates_numericality_of :user_id
	validates_uniqueness_of :user_id
	validates_associated :user
	belongs_to :user
    end
but I can still create an admin
2010 Sep 28
1
Run 'rails console' no problem, but not 'rails dbconsole': Couldn't find database client: psql.
It''s one of those things that seems like it should work but does not. My
rails app (and ''rails console'') clearly knows where my data is as I can see
my data.
When I run ''rails dbconsole'' I can not get in, I get this error: Couldn''t
find database client: psql. Check your $PATH and try again.
Up to now I just log in to pgsql directly and I am
2010 Feb 23
1
Rails on Snow Leopard
In particular, if you''re putting Rails on Snow Leopard to work on a
project that you started on Linux.
If you run rake db:create and see an error like this:
Couldn''t create database for {"reconnect"=>false, "encoding"=>"utf8",
"username"=>"root", "adapter"=>"mysql",