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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
15 matches
Mail list logo