Re: [Rails] content gets saved as nil

2015-04-20 Thread Colin Law
On 19 April 2015 at 21:33, Arumoy Shome arumoy.sh...@gmail.com wrote: I have run into a rather unusual situation and I can't seem to figure out why this is happening: I have a User model: class User ActiveRecord::Base has_many :posts, dependent: :destroy end And a Post model: class

[Rails] content gets saved as nil

2015-04-20 Thread Arumoy Shome
I have run into a rather unusual situation and I can't seem to figure out why this is happening: I have a User model: class User ActiveRecord::Base has_many :posts, dependent: :destroyend And a Post model: class Post ActiveRecord::Base attr_accessor :content belongs_to :user

[Rails] Content Compression via Rack::Deflater,Rails and Ngnix

2015-01-22 Thread kingston.s
I have followed this content-compression-with-rack-deflater http://robots.thoughtbot.com/content-compression-with-rack-deflater. In my ngnix.conf gzip on; gzip_http_version 1.0; gzip_proxied any; # See http://wiki.nginx.org/NginxHttpGzipModule#gzip_types # This

[Rails] CONTENT-TYPE for render :text = 'som text'

2010-11-24 Thread Vitaliy Yanchuk
Want to make it easy and clean Sometimes I do render :text = obj.to_yaml I want it to be formated as it would be with header text/plain But rails sets it to text/html Would be perfect to have: render :plain_text = obj.inspect -- Posted via http://www.ruby-forum.com/. -- You received this

Re: [Rails] CONTENT-TYPE for render :text = 'som text'

2010-11-24 Thread Rob Biedenharn
On Nov 24, 2010, at 4:07 PM, Vitaliy Yanchuk wrote: Want to make it easy and clean Sometimes I do render :text = obj.to_yaml I want it to be formated as it would be with header text/plain But rails sets it to text/html Would be perfect to have: render :plain_text = obj.inspect render

[Rails] Content-Length missing from HEAD request response

2010-10-29 Thread Stefan Alder
Just upgraded to Rails 3 from 2.x. I've got a download method which returns a file for download via XSendfile. In Rails 2.x a HEAD request of the download resulted in a response which included Content-Length, ETag and Last-Modified headers, but in Rails 3 I'm not longer getting these. Reading

[Rails] content displaying below posts in [ ]

2010-04-21 Thread Michael Michael
I am running into this issue, I am a super newbie when it comes to ruby on rails, mysql. I am a front-end developer trying to get into more of a MVC type structured language, and ruby on rails seemed like the one. Here is the issue I am having. I have created a post through rails c i go back to

[Rails] PgEast CFP (second call) (looking for rails content)

2010-01-13 Thread Joshua D. Drake
January 13, 2010 PostgreSQL Conference East, The PostgreSQL Conference for Decision Makers, End Users and Developers, is being held at the Radisson Plaza, Warwick Hotel in Philadelphia on March 25th through 28th. This is the second call for papers for this conference. You can review the skeletal

[Rails] SMS gateways (little Rails content) -- was:Re: SMS via Skype

2009-10-02 Thread Marnen Laibow-Koser
Colin Law wrote: 2009/10/2 Marnen Laibow-Koser rails-mailing-l...@andreas-s.net: I'll see your 5 minutes and raise it another 10. That information includes paid for services.  The Vodaphone service for example is, I believe, not free How does that work?  You send e-mail to the appropriate

[Rails] Content type is not included in the list

2009-06-09 Thread Dharmdip Rathod
Hi , i am uploading files using attachment_fu ,i can upload files with extension .txt, .xls, .doc but when i am going to upload .pdf extension file i gives Validation failed: Content type is not included in the list error. My model file code is here . class Model ActiveRecord::Base

[Rails] Content Management the Rails way

2009-03-27 Thread Neil Middleton
Hi guys, I'm currently looking into the CMS's we use at the moment in house with an aim to replace them with a Rails / Ruby based system to match our application stacks (we do 50/50 app / CMS development). At the moment we're using Joomla and a CMS written in ColdFusion. Question is, I've looked

[Rails] Content delivery networks

2009-03-03 Thread Martin Streicher
I am authoring an article for Amazon Cloudfront. Are there recommended techniques for working with content delivery networks in Rails? I have seen and used ActionController::Base.asset_host and am aware of the date parameter that Rails can attach to each static image to reflect its last

[Rails] content

2009-02-27 Thread madhavi.k
hello all, how to do content moderation,content authentication and content approval for rails application ? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Content distrubution in Rails

2008-11-03 Thread Remco Swoany
Hi, I hope someone can suggest me some tips in case of content distrubution in Rails. We have some great content in our database. The content are city-guides of 20 destionations (sports, culture, beaches ect)world-wide. Now the idea is that we want to distribute our content to our

[Rails] Content-type method missing for Tempfile

2008-09-29 Thread Iain Adams
Hello, I have created a group model that has a picture. On uploading the picture the variable uploaded_file is set as the Tempfile uploaded. I then have an after_save method that creates several thumbnails of this picture using RMagick. The trouble I am having is when I try and copy a group with