Displaying 20 results from an estimated 8596 matches for "renderers".
Did you mean:
renderer
2007 Feb 02
0
Attempting to get FFXI working.
Hello -
I'm trying to get Final Fantasy XI working under wine. In order to do
that, I need to get the PlayOnline Viewer working first.
According to the AppDB, PlayOnline was working up to Silver level on
Wine 0.9.19. ( http://appdb.winehq.org/appview.php?iAppId=1992 )
I'm running FC6, Wine 0.9.30, and Nvidia drivers v1.0-9746.
Below is the debug output that I get when trying to run the
2012 Sep 18
4
multiple modules defining same method included into a class
In Ruby, classes are never closed: you can always add methods to an
existing class. This applies to the classes you write as well as the
standard, built-in classes. All you have to do is open up a class
definition for an existing class, and the new contents you specify
will be added to whatever''s there. In the same regard, if module is
used with the name of a pre-existing module that
2009 Aug 13
5
First hit on app takes a long time
So, I''ve deployed my first rails app, however I''m the only one hitting
it for now.
I''ve noticed that the first time I hit the app after some long period,
it takes a really long time to respond (2-3 seconds). After that,
it''s very fast.
At first, I thought it might be my VPS "waking up" from some sleep
state, but Rails does log the long load time
2008 Dec 27
0
FFXI on Debian Etch 4.0-r6 AMD64
I followed the instructions for setting up FFXI on Wine (including copying the .dll from the Windows XP system) but when I launch pol.exe, it just comes up with a black screen. I can hear music for a few minutes but then it crashes. Anyone have any ideas?
Code:
nate at tux:~/.wine/drive_c/Program Files/PlayOnline/SquareEnix/PlayOnlineViewer$ wine pol.exe
err:alsa:ALSA_CheckSetVolume Could not
2006 Jan 10
7
Can only render or redirect once per action - why?
I ran into this error message a quite a few times since my app requires
branching to different pages from the same action... say using a switch
statement. Ofcourse I found that you can use multiple redirects or renders
if you do
render :action => ''new'' and return false
I hate to code something I don''t understand fully. Any explanation of this
will be greatly
2009 Jan 05
10
Simple windows application not quite working
I am trying a popular simple educational windows application on Ubuntu (8.10) and Wine 1.1.12.
The application is called Atoumath (simple application to test metal calculation capabilities: http://www.kervenec.net/atoumath/telecharge.php). Sorry it is a french application but it is quite easy to install and use.
I am able to install and run the application with Wine but some of the UI is not
2006 Apr 17
3
Does render() have 2 be last statement in controller method?
I have a controller method that is attempting to do a render based on a
potential error condition.
So I have
if (condition)
render()
else
..other code
end
....other code in method
Should I expect the render to take place immediately or does the render
call not work because it isn''t the last statement in the method?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2008 Aug 08
2
template.expect_render fails when partial is rendered from a helper
My spec;
describe ''subnav rendering while logged in'' do
before do
template.stub!(:logged_in?).and_return(true)
template.stub!
(:current_profile).at_least(:once).and_return(mock_profile)
end
def do_render
render "/homepages/show.html.erb"
end
it "should render the logged in partial for homepages" do
2007 Jul 28
2
specing a call to render :layout => "some_layout"
I''m trying to specify that an action should be rendered with a given layout
one particular spec.
What I''ve got at the moment is this.
it "should render with the grabber layout" do
controller.should_receive( :render ).with( :layout => "my_layout" )
do_get
end
This doesnt work even though this call to render is being executed.
render :layout
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
I am trying to teach my models how to render themselves, i.e.
<%= my_model_object.render() %>
Let me explain my reasoning and proposed method before this gets shot
down as anti-MVC.
Let''s say I am writing a contact-management application. I have a
class Contact. I will need to display this class all over the
application. My first choice is to use a partial.
Now I can
2007 Apr 12
11
Test if view renders appropriate partial?
Hello,
I am testing out a partial that calls another, general purpose
partial as part of its processing. Is there a class I can mock in
Rails views to accomplish what I need? That is, could I do something
like the following:
SomeClass.should_receive(:render).with(:partial => "foo", :locals => {
:bars => bars })
I tried breakpointing the view, and it looks like I am greeted
2008 Mar 14
2
Multiple should_receive(:render).with
I''m trying to specify that a particular view must render two different partials.
My spec looks like:
describe AClass do
it do
template.should_receive(:render).with(:partial => ''foo'', :locals => { ... })
...
end
describe ''some conditional case'' do
it do
template.should_receive(:render).with(:partial =>
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
My original post might have been overlooked by most, but I''ve made a
plugin (link below) which allows rendering of objects directly via the
render method:
<%= render @some_object %> which would actuall render the @some_object
object (the object is even able to handle the options hash.
Rendering would actually be handeled by the object itself, by leaving it
up to the object to
2010 Jul 04
2
Rendering a different format in the implementation of a renderer
Yehuda has a nice article on implementing a custom renderer for PDF at
http://www.engineyard.com/blog/2010/render-options-in-rails-3/
I''ve tried to follow the example and I''m not sure I see how to get it to
work. If I understand things correctly, the format(s) usable in this
render call
respond_with(@resource) do |format|
format.xyz { render :xyz => ... }
end
2007 Apr 11
13
View Specs Fail with "protected method render"
I''ve got rspec and zentest installed as well as the rspec rails plugin, and
my model/controller specs all pass and work well. I can''t seem to get views
to work though - 100% of the specs fail with:
NoMethodError in ''/users/show.rhtml should render attributes in <p>''
protected method `render'' called for
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...metal/streaming.rb:219:in `_render_template''
actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:112:in `render_to_body''
actionpack (4.0.0.beta1) lib/action_controller/metal/rendering.rb:33:in `render_to_body''
actionpack (4.0.0.beta1) lib/action_controller/metal/renderers.rb:26:in `render_to_body''
actionpack (4.0.0.beta1) lib/abstract_controller/rendering.rb:97:in `render''
actionpack (4.0.0.beta1) lib/action_controller/metal/rendering.rb:16:in `render''
actionpack (4.0.0.beta1) lib/action_controller/metal/instrumentation.rb:41:in `block (2...
2009 Jul 27
3
render syntax has me stumped
Hi,From within an action called manager within a controller called
storedorders, I want to render to the view for the manger action of
controller orders.
It really seems like the following syntax should work:
(within the StoredordersController manager method...)
respond_to do |format|
format.html {render :controller => ''orders'', :action =>
2007 Nov 03
1
Specs for Helpers that call render
The helper spec I am writing tests a helper method that calls render.
##
module HelperHelper
def render_partial
render :partial => ''partial''
end
end
##
The helper spec.
##
describe HelperHelper do
it "should render partial" do
render_partial.should_not == nil
end
end
##
The output generated
##
$ spec spec/helpers/home_helper_spec.rb
.F
1)
2008 Dec 18
2
Render a view from console
Hello!
In my application I''m trying to render a view from a class in /lib
folder. I have found that it''s very similar to render a view from
console. So, I have tried different methods:
>> string = ActionView::Base.new.render( :inline => ''works'', :layout => false )
=> "works"
>> string = ActionView::Base.new.render( :template =>
2007 Mar 19
1
Playing online game
Hi,
I'm new to all things 'Wine' so I'm hoping for some help. Unfortunately
all I've got is a long terminal output which doesn't mean a lot to me.
I've attached it below. I'm sorry it's so long.
the two problems manifest themselves in this way:
1. The icons on the program don't all show. (some do!)
2. It cannot connect to the internet web site.
Thanks for