search for: rendering

Displaying 20 results from an estimated 8567 matches for "rendering".

2007 Feb 02
0
Attempting to get FFXI working.
...pl_SetCooperativeLevel (0x165de8)->(0x10028,00000113) fixme:win:WIN_CreateWindowEx Parent is HWND_MESSAGE dummy fixme:d3d:IWineD3DDeviceImpl_CreateSurface Trying to create a render target that isn't in the default pool fixme:d3d_surface:IWineD3DSurfaceImpl_UnlockRect unsupported unlocking to Rendering surface surf@0x19a1250 usage(WINED3DUSAGE_RENDERTARGET) sqpoldir: SetDirName[c:\Program Files\PlayOnline\SquareEnix\PlayOnlineViewer\] polBackToGameFlag =0 g_bNeedToGetAllMsg =1 CSettingFileDirectory -----> "c:\Program Files\PlayOnline\SquareEnix\PlayOnlineViewer\usr\all\" fixme:d3d:IW...
2012 Sep 18
4
multiple modules defining same method included into a class
...n a class, without a prefix (prefix meaning something like this: AbstractController::Layouts), then ruby searches for the module of that name within the scope of the current module wrapping the class that the include was called in. So, for example: module ActionController class Base include Rendering Since we "include Rendering" within the scope of the Base class object, ruby first looksup the constant Rendering, that is, looking for a module named Rendering in the ActionController namespace, since that is the namesapce that Base is defined in??? Well, ActionController module does d...
2009 Aug 13
5
First hit on app takes a long time
...t;waking up" from some sleep state, but Rails does log the long load time (log below). My app just uses the database for login/user auth. Otherwise, it serves up pages on the filesystem in textile and renders them as HTML. There is no explicit caching done by me, and the filesystem/ textile/rendering is all hand-rolled (so there''s no caching done implicitly). What are some things I should look for to understand why this happens? log of two sequential requests for the same page: Processing WikiPagesController#show (for 98.218.223.189 at 2009-08-12 20:16:41) [GET] Parameters: {&quot...
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
...tureImpl_get_hPal unimplemented for type 3. Returning 0 palette. fixme:ole:OLEPictureImpl_get_hPal unimplemented for type 3. Returning 0 palette. fixme:ole:OLEPictureImpl_SaveAsFile (0x141668)->(0x14a970, 0, (nil)), hacked stub. fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_Rend...
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...
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
...del in the contact.rb file, the contact is no longer reusable in other places. But with ruby I''m supposed to be able to dynamically extend objects. So why not extend my contact in my controller, teaching it to render itself? In this way, different controllers could have different rendering code for a Contact, and the Contact class itself is never altered, but the code on my page goes from: <%= render_contact contact %> to <%= contact.render() %> and the controller AJAX code is likewise simplified. So that''s the what and why, but for the life of me, I canno...
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
...ender).with(:partial => ''foo'', :locals => { ... }) ... end describe ''some conditional case'' do it do template.should_receive(:render).with(:partial => ''bar'', :locals => { ... }) ... end end end Rendering the foo partial passes off fine, but the spec fails when it comes to rendering the bar partial: Mock ''ActionView::Base'' expected :render with ({:partial=>"bar", :locals=>{...}}) but received it with ({:partial=>"foo", :locals=>{...}}) In the vie...
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 inteact with the temp...
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
...iew/renderer/abstract_renderer.rb:23:in `instrument'' actionpack (4.0.0.beta1) lib/action_view/renderer/partial_renderer.rb:278:in `render'' actionpack (4.0.0.beta1) lib/action_view/renderer/renderer.rb:41:in `render_partial'' actionpack (4.0.0.beta1) lib/action_view/helpers/rendering_helper.rb:27:in `render'' app/views/controller_actions/edit.html.erb:3:in `_app_views_controller_actions_edit_html_erb__785330494_92185850'' actionpack (4.0.0.beta1) lib/action_view/template.rb:143:in `block in render'' activesupport (4.0.0.beta1) lib/active_support/notifica...
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
...d! fixme:ole:OLEFontImpl_Invoke property put for Size with vt 4 unsupported! fixme:ole:OLEFontImpl_Invoke property put for Size with vt 4 unsupported! fixme:ole:OLEPictureImpl_get_hPal unimplemented for type 3. Returning 0 palette. fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_get_hPal unimplemented for type 3. Returning 0 palette. fixme:ole:OLEPictureImpl_get_hPal unimplemented for type 3. Returning 0 palette. fixme:ole:OLEPictureImpl_Render Not quite correct implementation of rendering icons... fixme:ole:OLEPictureImpl_get_hPal unimple...