|
I have a partial for a "guest" object which renders a link to a destroy action like this:
<%= link_to_remote "remove", :url => { :action => "destroy", :id => guest.id } %>
When called from an ERB view it works fine, e.g.
<div id="guests...
Started by Luke Sampson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Links are designed, by HTTP specification....
Allow me to explain.
You were doing it almost right, but you're not quite following convention .
I renamed the destroy action to delete instead and it works fine .
Turns out "destroy" has special meaning in Rails.
|
|
I was using some image cropping example that I found online and now I got confused. There is actually no "crop" method in my controller. Instead (following the guide) I put a
render :action => 'cropping', :layout=> "admin"
In my create method. That...
Started by Stacia on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
render :template => 'path to render cropping as....
You'll find it useful to read up on the render documentation before each needing different preparation before rendering the template.
And the associated controller logic.
|
|
I just finished reading YSlow recommendation to always define the image dimensions (height/width) to improve HTML rendering performance.
However, I don't know the image dimension I'm linking too.
What I do know is that the height will never be larger ...
Started by JasonK on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Setting the max height and width of an image in the css will make the img tag resize the img based on the contraints but if you are using a... .
I would not recommend this.
Images with different proportions would not look good, since they would be scaled .
|
Ask your Facebook Friends
|
My app has these models:
patient, which has one patient_info, which has one history and has many exams.... I want to create a Report view where I show all this data.. right now Im creating the view and its turning out to be ugly and long.. is there a ...
Started by NachoF on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could break up the report into partial views and render them using Htm.RenderPartial
You could.
|
|
Hi there, I'm looking to build 4x Maya render slaves/nodes for a friend of mine when his project gets green lit. The project involves MentalRay and lots of glass.
I'm unsure if the new i7's 9xx or 8xx with hyper threading will do any better than a core...
Started by Ak on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
Can u come into chat for a while.
Hi please Ak please help me with setting up a render node..
|
|
I often write code that renders images by writing pixels directly into buffers and I often find it hard to get a good overview of what's really going on. The Memory window in Visual Studio's debugger is somewhat a help, but I'd really love to see the ...
Started by nielsm on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The one thing that can help in native land is the expression.
Will help: http://www.codeproject.com/KB/WPF/WPF%5FGlimps.aspx
The class can be added in C++ CLI the CLR, hence either C# or C++/CLI.
|
|
Hi guys,
this might seem like an obvious question but hear me out.
I kinda always "new" that render passes don't add render time, except maybe additional AO pass or Velocity as they may require more calculations than the clean beauty pass.
And maybe some...
Started by kaczorefx on
, 15 posts
by 5 people.
Answer Snippets (Read the full thread at vfxtalk):
Add the basic passes (diffuse, lighting, shadows, specular, GI) and see how long it will render now and see what....
If the difference is to do with the extra writing to disk or the render process and longer renders will help.
|
|
Hi, to maximise my work flow, and minimise time (waiting for my computer to respond!) can you suggest which is better and why ?? I have a PP project with a few sequences, one of which was replaced with an AE comp. The AE comp using some heavy effects ...
Started by Jonny Webb on
, 16 posts
by 4 people.
Answer Snippets (Read the full thread at creativecow):
In this way, you get the benefit of using an underlying computed render controlling where that ....
If you right click the comp and choose make a proxy, simply set the render settings as if you were doing a full quality render.
|
|
I am pulling my hair trying to find a fix for this problem. If you go to this site you will see that (under IE) the slider and the menu on the top is broken. Works fine under all modern browsers.
Any idea how to fix this? Thanks.
Edit: Want to add that...
Started by bran on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
No fix but a lead: the issue with the menu bar is one of IE's mysterious... .
I can't check it for you, since I've not got access to IE right now, but I've often found that adding position:relative to misbehaving elements is something of an IE magic bullet .
|
|
What i want the program to do is draw the graphic ground at each point in which a one appears in the .txt file, but everytime i run it, it doesnt draw the sprite?
here is the code
using (StreamReader sr = new StreamReader("trainingLevel.txt")) { while...
Started by Aaron Macintyre on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I am entirely unsure what you're actually....
Foreach (Sprite z in updateDraw)
Will then do absolutely nothing at all .
Here's the problem:
List<Sprite> updateDraw = new List<Sprite>();
updateDraw will, of course, contain zero elements at this point .
|