search for: render

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

Did you mean: sender
2007 Feb 02
0
Attempting to get FFXI working.
...(nil),00000008) fixme:ddraw:IDirectDrawImpl_SetCooperativeLevel (0x165de8)->(0x10028,00000080) fixme:ddraw:IDirectDrawImpl_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_bNeedToGetAllMs...
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 doe...
2009 Aug 13
5
First hit on app takes a long time
...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 (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...
2008 Dec 27
0
FFXI on Debian Etch 4.0-r6 AMD64
...penGL context recreation support to SetDepthStencilSurface err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface dummy fixme:d3d:IWineD3DDeviceImpl_CreateSurface Trying to create a render target that isn't in the default pool fixme:d3d:IWineD3DDeviceImpl_CreateSurface Trying to create a render target that isn't in the default pool err:d3d_surface:IWineD3DSurfaceImpl_LoadLocation Reading back render target but SFLAG_INDRAWABLE not set fixme:d3d:IWineD3DDeviceImpl_CreateSurfac...
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 appreciated! Thanks, bakki kudva -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wr...
2009 Jan 05
10
Simple windows application not quite working
...ation 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 properly rendered. If you go to the top left menu in the main window of the application (Additions menu) then click on the first entry ("Tres facile" which means "Very easy"), then click OK in the popup, you will get to a screen where all the "dynamic text" (such as the two numbers to...
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...
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 log...
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 rende...
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 applicatio...
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 by an anonymous class, which I am unsure how to mock. Thanks for the help. -Chris
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(:re...
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 t...
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| fo...
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 #<Spec::Rails::Runner::ViewSpecController:0x3197dfc> /Users/jeff/Sites/niche/trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/runner/context/view.rb:102:in `render'' ./spec/views/users/show_rhtml_spec.rb...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...ure'' actionpack (4.0.0.beta1) lib/action_view/helpers/form_helper.rb:435:in `form_for'' app/views/controller_actions/_form.html.erb:1:in `_app_views_controller_actions__form_html_erb__366592963_95670400'' actionpack (4.0.0.beta1) lib/action_view/template.rb:143:in `block in render'' activesupport (4.0.0.beta1) lib/active_support/notifications.rb:160:in `instrument'' actionpack (4.0.0.beta1) lib/action_view/template.rb:141:in `render'' actionpack (4.0.0.beta1) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'' actionpack (4.0...
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 => ''manager...
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/hel...
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 =...
2007 Mar 19
1
Playing online game
...property put for Size with vt 4 unsupported! 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 icon...