<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - Carrierwave photo upload not working the way i want]]></title>
		<link>http://railsforum.com/viewtopic.php?id=51382</link>
		<description><![CDATA[The most recent posts in Carrierwave photo upload not working the way i want.]]></description>
		<lastBuildDate>Thu, 22 Nov 2012 07:47:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157180#p157180</link>
			<description><![CDATA[<p>Ahh! Never used Devise.<br />When you post the form back to the server does the photo appear in the params list? (Check your log file)<br />If so, what happens to the data? Does it get saved? Again check your log file, you should be able to see what is happening.<br />Post the log file entries here if you struggle to understand them.</p>]]></description>
			<author><![CDATA[dummy@example.com (jamesw)]]></author>
			<pubDate>Thu, 22 Nov 2012 07:47:09 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157180#p157180</guid>
		</item>
		<item>
			<title><![CDATA[Re: Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157178#p157178</link>
			<description><![CDATA[<p>The simple_form_for is gem that works well with bootstrap. But just think of it as form_for. The rest of the form looks like that because it is auto created by Devise, since I am using Devise for authentication.</p>]]></description>
			<author><![CDATA[dummy@example.com (r08o)]]></author>
			<pubDate>Wed, 21 Nov 2012 23:34:12 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157178#p157178</guid>
		</item>
		<item>
			<title><![CDATA[Re: Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157177#p157177</link>
			<description><![CDATA[<p>Your form_for declaration looks very odd<br /></p><div class="codebox"><pre><code>&lt;%= simple_form_for(resource, :as =&gt; resource_name, :url =&gt; registration_path(resource_name), :html =&gt; { :method =&gt; :put, :class =&gt; &#039;form-vertical&#039;, :multipart =&gt; true }) do |f| %&gt;</code></pre></div><p>It looks like you are creating a form for an object that doesn&#039;t exist.<br />Your controller action doesn;t seem to have anything to do with something called resource or resource_name<br /></p><div class="codebox"><pre><code>def update
  @user.photos.build
end</code></pre></div><p>@user presumably is the object that you are wanting to edit in the form? If so why aren&#039;t you doing form_for @user ?<br />Also I have no idea what simple_form_for does, Never seen that before!<br />Your form just looks ... well ,,, wrong! So much so that I don&#039;t really understand what it is you are trying to do</p>]]></description>
			<author><![CDATA[dummy@example.com (jamesw)]]></author>
			<pubDate>Wed, 21 Nov 2012 23:16:47 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157177#p157177</guid>
		</item>
		<item>
			<title><![CDATA[Re: Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157169#p157169</link>
			<description><![CDATA[<p>I have followed the guide you&#039;re linking to very carefully while trying to create the photo uploader to start with. And I am using multipart.</p><p>But when I inspect the web page using Chrome the fields_for is nowhere to be found. Will you take a quick look at gist to see if I am doing something abviously wrong? I really do not understand this problem, and I have been struggling with it for two days now googling, and asking around. Following a lot of suggestions to problems similar to mine, but with no luck. Alternately give me an other maybe even better way to make it possible for a user to upload one picture at a time, but each picture should belong to the user and the user should be able to have more than one picture.</p>]]></description>
			<author><![CDATA[dummy@example.com (r08o)]]></author>
			<pubDate>Wed, 21 Nov 2012 15:14:59 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157169#p157169</guid>
		</item>
		<item>
			<title><![CDATA[Re: Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157168#p157168</link>
			<description><![CDATA[<p>Check the source code of your web page (Firefox with firebug plugin or Chrome will allow you to inspect the page) and check that the form is a multi-part form. If not then make the form multi-part See here for a good example of how to handle images with carrirer wave <a href="http://railscasts.com/episodes/253-carrierwave-file-uploads">http://railscasts.com/episodes/253-carr &#133; le-uploads</a></p>]]></description>
			<author><![CDATA[dummy@example.com (jamesw)]]></author>
			<pubDate>Wed, 21 Nov 2012 15:00:45 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157168#p157168</guid>
		</item>
		<item>
			<title><![CDATA[Carrierwave photo upload not working the way i want]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=157161#p157161</link>
			<description><![CDATA[<p>I am building a photo uploader for my app. I have made a Photo model so that a user can have more photos &quot;assigned&quot; to it. I want to be able to see all the photos that a user has uploaded.</p><p>My problem is that when I upload a photo it is not registered anywhere in the database hence I am not able to view the photos. I am not sure where I am making a mistake, but I have also been having some problems with the fields_for block in the edit.html.erb. If I try to assign it to the form_for block by putting &quot;f.&quot; in front of fields_for, the block will not show.</p><p>I have made a Gist with the code that I think is necessary for you guys to point me in the right direction or help me out.</p><p><a href="https://gist.github.com/4081673">https://gist.github.com/4081673</a></p>]]></description>
			<author><![CDATA[dummy@example.com (r08o)]]></author>
			<pubDate>Wed, 21 Nov 2012 12:25:05 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=157161#p157161</guid>
		</item>
	</channel>
</rss>
