similar to: partials and instance variables for file_column

Displaying 20 results from an estimated 600 matches similar to: "partials and instance variables for file_column"

2019 Feb 22
3
dovecot Buch 2014 vs 2016
Moin, Es geht um das Dovecot-Buch. Ich nehme an, da? hier mindestens einer, der sich auskennt, mitliest: Gibt es - au?er der Sprache und dem Preis - einen Unterschied zwischen der ersten (und einzigen?) deutschen Auflage von 2014 und der englischen Auflage von 2016? -- Heiko -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type:
2017 Oct 24
3
Jacobi 5 Point Stencil Code not Vectorizing
Your problem is due to GVN partial reduction elimination (PRE) which introduces a PHI node the current loop vectorizer cannot handle: opt -O3 stencil.ll -pass-remarks=loop-vectorize -pass-remarks-missed=loop-vectorize -pass-remarks-analysis=loop-vectorize remark: <unknown>:0:0: loop not vectorized: value that could not be identified as reduction is used outside the loop remark:
2006 Apr 22
7
Instance variables versus local variables
This novice coder roughly understands the difference between instance and local variables thanks to David Black''s excellent book, but I''m still unclear as to when and why a either is more desirable to use. In general, I use instance variables in my controller and local in my views, but I''m not sure as to why or if this is correct. Thanks Joe Kowalski
2006 Apr 18
4
how would you take the duplication out of this?
i have these two really similar methods in my addressbook controller. def edit_company @company = Company.find(params[:id]) if request.post? and @company.update_attributes(params[:company]) flash[:notice] = ''Company was successfully edited.'' redirect_to :action => ''show'', :id => @company end end def edit_person
2017 Oct 23
3
Jacobi 5 Point Stencil Code not Vectorizing
<div> </div><div> </div><div>Hello,</div><div> </div><div>To me this is an issue in llvm loop vectorizer (if N is large enough to prevent complete unrolling of j-loop).</div><div> </div><div>Woud you mind to share stencil.ll than I would say more definitely what the issue
2005 Oct 09
6
Problem With url_for_file_column/file_column
I am using the very helpful file_column extension in my app. The uploading portion works great - no problems. Where I am having an issue is displaying the images in my view. My code looks like this: <% for @record in @main_box_releases -%> <%= image_tag(url_for_file_column("record", "record_cover")) %> <% end -% @record is an instance of a class called
2005 Jul 28
1
WINBIND
hello, I have a Linux Client (debian sarge) which shares a folder via Samba (3.0.14a). A remote client who wants to mount that share needs to authenticate himself. Like in: mount -t smbfs -o username=user1,password=secret My Samba now have to check the auth against a Active directory. Now my question: Do I need winbind on my client? Because, winbind only maps sid to uid and uid to sid. In case
2004 Mar 29
1
StepAIC
Dear list, here is an example of stepAIC that I do not understand. The data is n=42, Lage is the only factor and there are four other variables treated as continuous. First you see the stepAIC-forward solution (fs7). The strange thing here is that apparently not all interactions are tried for inclusion, but only WQ:Lage. In particular, I think that WFL:Lage should be tried in the last two
2006 May 12
11
Stupid? question about if else logic
this seems so stupid, I keep thinking I''ve dealt with this before but I have this code <h1>Portraits</h1> <% if @image.portrait == 1 %> <%= image_tag(url_for_file_column ''image'', ''file'', ''thumb'') %> <% else %> <h1>Landscapes</h1> <%= image_tag(url_for_file_column
2006 Jan 14
2
file_column, ActionMailer, and tests
Hi, Say I have a model Event that has a file_column called ''pdf''. I want to send out emails that contain the URL for the pdf file that''s associated with the Event. I also want to test the emails, so I''d need to be able to get at the URL for the pdf inside my unit tests. I don''t see how I can use url_for_file_column in this situation. Doing <%=
2006 May 12
3
file_column error
Hmm, I''m using file_column and going by this tutorial, the files upload ok and I can see the fields updated in the database, but I am getting this error: "Trying to access file_column, but primary key got lost." Thanks in advance -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
5
file_column mangling URL
Hey, I''ve gotten file_column to upload a file, drop it in the dynamic directory, but I can''t display the image, the directories repeat themselves: My model: class Person < ActiveRecord::Base file_column :image_url In my view: <%= image_tag url_for_file_column(''person'', ''image_url'') %> HTML generated is this: <img
2005 Oct 04
3
[Q] file_column help needed
Hi all, I''m trying to use file_column to upload a picture but I''m getting the following error: "cannot convert nil into String" caused by the last line in FileColumnHelper::url_for_file_column(object_name, method) url << object.send("#{method}_relative_path") I don''t have any images uploaded for existing entries so does this not
2006 Jan 25
1
url_for_file_column in parent model''s view
Hi All, I am using the file_column plugin to upload images. The model that I am using is simply called images (id, name, caption - name being the "file" column) and it belongs_to a parent model called books which has_many images. I was able to figure out how to enter the images into the correct model when updating of form of the parent model (books). Now I need to figure out
2006 Aug 13
5
problems with file_column plugin
1) installation is not as smooth as some other plug-ins. If you follow the instructions on http://www.kanthak.net/opensource/file_column/ it makes a directory called trunk instead of file_column. You have to manually rename it to file_column. I guess this is a minor annoyance but it gives me the feeling that things aren''t quite like other plugins. 2) I get this error: undefined
2005 Aug 17
7
(newbie) #{method}_relative_path empty (file upload 0.1.2)
first off, thanks (a lot!) sebastian for creating this module... I''ve been spending a lot of time in getting file uploads to work. inside a project I''m working on, I''ve got two different models using it... with one of them it''s working just fine. with another, everything works, with the exception of the url_for_file_column helper, which shows
2006 May 08
1
file_column - url_for_file_column issue.
Hi, url_for_file_column @variable, ''name'', takes an instance variable. My question is, what if I don''t want to have to retrieve the instance variable every single time but I have the image id, along with its name with me. Could I contruct that object in a view and pass it to url_for_file_column: <% @picture = Picture.new %> @picture.id = ...
2006 Feb 10
2
file column within link_to
Hi, I correctly see: image_tag url_for_file_column("element", "picture_url", "medium") now I need to make it a link so I''ve used: <%= link_to(image_tag url_for_file_column("element", "picture_url", "medium"), {:controller => "products", :action => "sec_level", :level_id => @element.id}) unless
2006 Jan 17
2
file_column plugin and instance variables
To make file_column work I have to copy my local variable back to an instance variables like this: <% for product in @products @product = product %> <div class="catalogentry"> <%= image_tag url_for_file_column(''product'', ''image_url'') %></p> This is needed because file_column specifically looks for the instance
2007 Dec 29
1
url_for_file_column not works
I am using the file column plugin. If i upload an image it works correctly but if i want to show an image it not works. in my template i insert url_for_file_column(@core, "image", "thumb") but return "" i tried to print @core.image but it is set to nil. My model is this: class Core < ActiveRecord::Base has_one :forum_topic has_many :votes has_many