Displaying 20 results from an estimated 8596 matches for "rendered".
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
...mesapce that Base is defined in???
Well, ActionController module does define a module named Rendering:
module ActionController
module Rendering
def render(*args)
raise ::AbstractController::DoubleRenderError if response_body
super
self.content_type ||= Mime[lookup_context.rendered_format].to_s
response_body
end
So now the method render(*args) is included in the Base class as an
instance method. So when we call, for example, (hypothetically)
ActionView::Base.new.render :action => "my_action", :layout => false,
ActionView::Base is instantiated and w...
2009 Aug 13
5
First hit on app takes a long time
...20:16:41) [GET]
Parameters: {"id"=>"MainPage"}
Rendering template within layouts/application
Rendering wiki_pages/show
User Columns (1.3ms) SHOW FIELDS FROM `users`
User Load (0.4ms) SELECT * FROM `users` WHERE (`users`.`id` = 4)
LIMIT 1
Repopulating the stop words
Rendered common/_header (16.7ms)
Rendered common/_nav (4.4ms)
Rendered common/_search (2.4ms)
Rendered common/_footer (0.6ms)
Completed in 2422ms (View: 134, DB: 2) | 200 OK [http://myserver.com/
wiki_pages/MainPage]
Processing WikiPagesController#show (for 98.218.223.189 at 2009-08-12
20:17:04) [GET]
P...
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
...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 a...
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
...=> ''shared/subnav/home'', :locals
=> {:active => :home})
do_render
end
end
passes if I render the partial directly in the view,
render :partial => ''shared/subnav/home'', :locals => {:active => :home}
but it fails if the partial is rendered by a helper;
module ApplicationHelper
def subnav(partial, args={})
active = args[:active] || :no_highlight
if partial == :home
partial = (logged_in? ? ''home'' : ''login'')
end
render :partial => "shared/subnav/#{partial}", :loca...
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...
2006 Feb 14
22
Teaching Models to Render Themselves in the Controller
...w call this same function from my view to render the page
initially, and from my controller to render new contacts for AJAX calls.
The next step is where I''ve run into trouble. Instead of having all
of these methods in the controller and calling out to them whenever I
need a Contact rendered, how about sticking the methods right onto
the model itself? Of course this breaks MVC if I put it on the model
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 conta...
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
...es 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 view the foo partial is rendered first, and presumably that is being
intercepted in the second example and thus failing. How do I avoid this?
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
...repeat this multiple times - and then trying to
find a typo...
----------------
The source and documentation is still avalible at
http://www.heino.gehlsen.dk/software/ruby/rails/plugins/renjects/
NB. Since my initial post, I have changed the classes into modules, so
that _any_ module could be rendered by extending these modules.
Kind regards
Heino H. Gehlsen
Heino H. Gehlsen wrote:
> So, Ruby is OO all the way, but in Rails we can?t render an object?
>
> Having retyped way too many calls to ActionViews render method with
> various options, I finally figured, why not make it poss...
2010 Jul 04
2
Rendering a different format in the implementation of a renderer
...ls, and layouts) are
looked up based on only this format, e.g. show.xyz.erb.
This is the correct behavior, of course, but there are legitimate
reasons for wanting to override it. For instance, implementing one
renderer in terms of another. In my particular case, I''m trying to get
HTML rendered in order to convert it to PDF.
As I can see no other clean way, I wish ActionView::LookupContext had a
method #with_format(format) { ... } for overriding the format for the
duration of the block. Such a renderer could then look like this
ActionController.add_renderer(:xyz) do |template, optio...
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
Hi all, I am trying to reproduce rails 3.2 behaviour with fields_for and
nested attributes.
class ControllerAction < ActiveRecord::Base
has_many :interactions, dependent: :destroy
has_many :roles, through: :interactions
scope :controllers, lambda {|name| where("controller_name_id = ?",
name)}
scope :actions, lambda {|name| where("action_name_id =
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