Displaying 20 results from an estimated 2000 matches similar to: "Best way to force a respond_to format"
2006 Jan 09
2
Ruby on Rails and WURFL?
Hi!
I''m a newcommer to Ruby and Rails. I''ve just got the environment done on
my Mac OS X machine and I am eager to start to learn more!
It seems as such a great plattform for doing webapplications.
I have a specific task I would like to acomplish but being a newbie with
Rails and Ruby am not sure where to start.
What I want to do is to create a mobile site that is very
2006 Mar 10
3
WML sites
Hi all
how to make a WML view for rails pages?
I''ve tried to create like:
<wml>
<card>
CONTENT
</card>
</wml>
but my phone says unsupported content type...
thanks
--
Posted via http://www.ruby-forum.com/.
2020 Aug 05
1
[vhost:vhost 32/52] include/linux/typecheck.h:12:18: warning: comparison of distinct pointer types lacks a cast
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head: 4c05433bc6fb4ae172270f0279be8ba89a3da64f
commit: b025584098e621d88894d28e80af686958e273af [32/52] virtio_input: convert to LE accessors
config: parisc-randconfig-r003-20200805 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
2020 Aug 06
0
[vhost:vhost 32/65] drivers/virtio/virtio_input.c:247:3: warning: comparison of distinct pointer types ('typeof (_Generic((virtio_cread_v), __u8: (virtio_cread_v), __le16: (__builtin_constant_p((__u16)((__u16)(__le16)(virtio_cread_v)))
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head: 1a86b377aa2147a7c866b03142e848c18e5f3cb8
commit: b025584098e621d88894d28e80af686958e273af [32/65] virtio_input: convert to LE accessors
config: powerpc-randconfig-r031-20200805 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 076b120bebfd727b502208601012a44ab2e1028e)
2009 Feb 20
6
How to mock an object defined in the before_filter function?
Hello,
I am trying to implement the following scenario, but I am stuck ...
The thing is I want to initialize a variable @comment when the stub
function "find_comment" is called.
The way I do it below doesn''t work, since
"before_filter :find_comment" returns true/false and @comment
initialization is done inside it. Could you please give me a hint how
to do it?
One
2015 Nov 02
2
Unstable UBSan tests on AArch64
Hi Adhemerval,
Some UBSan tests are timing out randomly.
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full
ex:
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/902
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/894
http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/906
2006 Jul 04
2
WAP/WML/Mobile Internet Access with RoR
Is there any good information on doing WAP/WML/Mobile Internet Access
with Ruby on Rails. I''ve tried surfing the web, but couldn''t come up
with anything substancial. I would appreciate any input in this regard.
Thanks in advance
Gopal
--
Posted via http://www.ruby-forum.com/.
2014 Sep 13
2
wml / centos7
Hi, anybody got wml running under centos7?
Got problems either compiling it or finding an rpm.
TIA for any hint!
Regards
Michael
2008 Apr 20
1
Why is respond_to always rending the RXML view?
I''m having a problem in Rails 2 where respond_to is always rendering the
RXML view even in the HTML rendering response. Can anyone tell me why
this might be happening? Here''s a code snippet:
respond_to do |accepts|
accepts.html
accepts.xml { render :action => ''show.rxml'', :layout => false}
end
If I change this to the following it works fine:
2006 Apr 08
2
respond_to causes DoubleRenderError?
I have a custom authentication plugin that redirects users to a login
site if they aren''t already authenticated and their session hasn''t
timed out. I had things working fine with straight http requests, but
wanted to add support for ajax requests. I thought this would be a
simple matter of replacing all of my "redirect_to <blah> and return
false" calls with
2006 Aug 14
1
respond_to? in acts_as_ferret results
acts_as_ferret''s search results use #method_missing to forward method
calls to the underlying result object. However, those methods are
represented in #respond_to?
Here''s a simple fix for that:
module FerretMixin
module Acts
module ARFerret
class SearchResults
def respond_to?(name)
self.methods.include?(name) || @results.respond_to?(name)
2007 Apr 18
0
[PATCH 9/12] base-into-desc
Move base / limit accessors into desc.h, where they properly belong.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/system.h
===================================================================
--- linux-2.6.13.orig/include/asm-i386/system.h 2005-08-08 17:58:03.000000000 -0700
+++ linux-2.6.13/include/asm-i386/system.h 2005-08-08 18:01:31.000000000 -0700
2007 Apr 18
0
[PATCH 9/12] base-into-desc
Move base / limit accessors into desc.h, where they properly belong.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/system.h
===================================================================
--- linux-2.6.13.orig/include/asm-i386/system.h 2005-08-08 17:58:03.000000000 -0700
+++ linux-2.6.13/include/asm-i386/system.h 2005-08-08 18:01:31.000000000 -0700
2007 Apr 18
0
[PATCH 10/14] i386 / Move descriptor accessors into desc h
Move base / limit accessors into desc.h, where they properly belong.
Patch-base: 2.6.13-rc5-mm1
Patch-keys: i386 desc cleanup
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/system.h
===================================================================
--- linux-2.6.13.orig/include/asm-i386/system.h 2005-08-09 20:17:26.000000000 -0700
+++
2007 Apr 18
0
[PATCH 10/14] i386 / Move descriptor accessors into desc h
Move base / limit accessors into desc.h, where they properly belong.
Patch-base: 2.6.13-rc5-mm1
Patch-keys: i386 desc cleanup
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.13/include/asm-i386/system.h
===================================================================
--- linux-2.6.13.orig/include/asm-i386/system.h 2005-08-09 20:17:26.000000000 -0700
+++
2010 Aug 21
1
Rendering a different Javascript file in respond_to
Hi everyone, I am stuck in an (apparently) simple problem.
In my event_controller I have the i_like_it action:
def i_like_it
@event = Event.find(params[:id])
... # logic
respond_to do |format|
format.js
end
end
In my case "i_like_it" is called with :method => PUT (it is an Ajax
call, "i_like_it.js.erb" will be returned as a script and it wil be
2006 Mar 22
1
undefined method `respond_to'' when using Exception Notifier Plugin
I''m trying to use the exception notifier plugin and I''m getting this error
message:
NoMethodError (undefined method `respond_to'' for
#<Adm::PeriodController:0xb74c9804>):
/vendor/plugins/exception_notification/lib/exception_notifiable.rb:64:in
`render_500''
/vendor/plugins/exception_notification/lib/exception_notifiable.rb:76:in
2012 Feb 20
1
respond_to format.json not being called
Hi all,
I''m submitting a form using jQuery, but in the respond_to block only the
format.html action is called.
This is the javascrip:
send_button.on(''click'', function(){
var form = $(this).closest(''.modal'').find(''form'');
$.post(''/messages'', form.serialize(),
function(data, status, xhr){
2006 Jun 08
0
custom mime types for respond_to
Is there a way to add a mime type of my own to respond_to ?
There''s html, xml, js, ical etc ...
But I want to be able to respond_to Excel.
Excel has the following content-type header:
application/vnd.ms-excel
I want to use the new ?format=xml querystring parameters that respond_to
can respond to.
So I want to pass in ?format=xsl or ?format=ms-excel so that I can
return my results
2007 Apr 26
2
assert_select with respond_to JS or xhr?
Hi everyone,
I am a bit confused with xhr? and respond_to.
I have the folloing code in my view to update the ''emails'' ID
link_to_remote(image_tag("refresh"), :update => "emails",
:url => { :action => "list_emails" })
in the controller side i have somthing like :
[..]
respond_to do |type|
type.html { render :action