similar to: image with Content-Type: text/html;

Displaying 20 results from an estimated 1200 matches similar to: "image with Content-Type: text/html;"

2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test. This is the test code of the sessions_controller.rb def create user = User.authenticate(params[:session][:email], params[:session][:password]) if user.nil? flash.now[:error] = "Invalid email/password combination." @title = "Sign in" render
2010 Aug 12
10
Scaffolding working...kinda
Hello all. I''ve been working through some online tutorials, learning ROR and have a question on scaffolding. Through the command promt i''ve ran the command: $ script/generate scaffold Albums This created the controllers, helpers, models, and views. I have a database table titled "albums" and have two records saved within The problem is that the scaffold command did
2012 Aug 29
2
Carrierwave Direct and additional form elements
I just switched a project from Dragonfly to Carrierwave, specifically to see if I could take advantage of Carrierwave Direct, which uploads large files directly to S3 or another cloud storage. I was able to make a form containing a single file field that would upload to S3. What I could not work out was how to upload the file to S3 AND other form elements to the model that had Carrierwave
2012 Jan 27
4
Redirecting to create new page with input
Rails 3.1.3 I believe this is a very very fundamental question, but since I am new to Rails, it''s more productive to ask someone to point out what I need to do. Say, I have a search method that generates a list of youtube videos. I have completed this part. And also, I have set up a database, Video, whose fields are video_title and URL. I need to place a button to each of these video
2011 Oct 05
3
Rails 3 Select_tag in javascript give missing ; error
When I write var x = "<%= select_tag(:activity_group, options_for_select(activity_grp),{:include_blank => ''Create New Group'', :style => ''width: 100px''}) %>"; where <% activity_grp = @activity_group.map { |ag| [ag.name, ag.id] } %> However, I get error (missing ; before statement) in Firebug because var x = "<select
2012 Apr 11
1
multi model form
hi, can someone advice how can I create a form with fileds from different models. also how to get the different models (objects) saved. thank you dani -- 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
2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
I am using rails 3.1.3. Inside config/ application -> config.assets.enabled = true Inside development.rb -> config.assets.compress = false Inside production.rb -> config.serve_static_assets = false; config.assets.compile = false I have images placed in assets/images. If i do localhost:3000/assets/ image I get the image in the browser, but unfortunately, on the browser i am
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
2010 Aug 13
10
:limit text mysql
I have a rails 3.rc app that I''m developing. I have a text entry in one my models that can sometimes be quite big. I tried setting :limit => 4294967296 on the text column in my migration file but this doesn''t seem to have any effect. The column is till created as a TEXT column rather than MEDIUMTEXT or LONGTEXT. Does anyone have any idea why this might be happening? Is there
2011 Nov 10
2
Rails nested Routing
Hi there! I experienced an issue with routing. Basically, I''m trying to follow step-by-step the Rails'' official guides process for what concerns the nested routing. So, I have Newspapers that has_many :ads , and :ads belongs to :newspaper . What I did was simply trying to obtain an URL like this: http://localhost/newspapers/1/ads/1 but when I set routes.rb in this way:
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there, I posted this issue <https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at the carrierwave-group, but I''m beginning to think this rather is a rails-issue than a problem with carrierwave. The problem''s this: I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my article_controller i
2011 Nov 04
5
Beating the Top-Posting Dead Horse
On Fri, Nov 4, 2011 at 12:44, BeeRich <beerich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > As for top posting, that is an old school habit. Er, no it isn''t. You young punks wouldn''t know old-school if it bit you in the diapers! Now get off my lawn! ;-) Seriously though, REAL old-school quoting is interleaved point by point, with anything irrelevant trimmed
2012 Mar 01
1
Testing selector order in RSpec
Could someone point me to a reference that explains how I would test the order of elements on an HTML page? For example, in RSpec I would like to verify that the content of one <p> element appears before the content of another. response.should have_selector("p", :content => "Should appear first") response.should have_selector("p", :content =>
2012 Apr 18
1
Re: validates_uniqueness_of question
Hi All, I am trying write a validation rule where I need to ensure that when a certain value is updated or created in a particular columns, a number of other columns columns are unique and that another column does not contain a certain value. I have been able to use the validates_uniqueness_of :column_a (to be updated or inserted) with , :scope => [ :column_b , :column_c , :column_d ]
2011 Nov 26
3
Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
I am using rails 3.1.3. Inside config/ application -> config.assets.enabled = true Inside development.rb -> config.assets.compress = false Inside production.rb -> config.serve_static_assets = false; config.assets.compile = false I have images placed in assets/images. If i do localhost:3000/assets/ image I get the image in the browser, but unfortunately, on the browser i am
2011 Aug 05
1
carrierwave tutorial
Is there a tutorial for `carrierwave` other than in RailsCasts that you recommend? Thanks. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email
2013 Feb 26
1
Store files with carrierwave to remote server (may be via ssh/scp)?
Im setting up production environment where all static content separated from web application server. I need to store all carrierwave powered content to another server, but by default carrierwave include only :file (for local files) and :fog (for cloud CDN) store support. How I can do that? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 May 22
1
How do you crop an image with carrierwave 'after the fact' in rails?
What I''d like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the basic flow of how to create this functionality. However, I am not aware of the carrierwave
2010 Aug 18
2
auth logic - password confirmation
Hi, newbie here. :) i have this form on a test rails app: <% form_for @user do |f| %> <%= f.error_messages %> <p> <%= f.label :username %><br /> <%= f.text_field :username %> </p> <p> <%= f.label :email %><br /> <%= f.text_field :email %> </p> <p> <%= f.label :password %><br
2012 Aug 16
1
How to create subpages.
What I am trying to do is create subpages within the main page. So if the top navigation is - Home www.example.com/ - About www.example.com/about - Contact www.example.com/contact - Support www.example.com/support I would want a sub navigation under the pages like so; - Home www.example.com/ - About www.example.com/about ----- History www.example.com/about/history ----- Locations