Displaying 20 results from an estimated 200 matches similar to: "ActionView::TemplateError when FQL query does not return any results"
2008 Mar 11
2
trouble with MyPublisher.deliver_story
hi,
I can''t seem to be able to delivery stories!
I have this in my controller
MyPublisher.deliver_story(@current_facebook_user.friends.first,
@current_facebook_user, @object.id)
This is in models/my_publisher.rb
# story is published to the story of the to user
def story(to, f, object_id)
send_as :story
recipients to
title "An object?"
body
2006 Jan 06
3
Flashing Window in Quicken
Wine version: all
Linux version: Fedora 3 and Gentoo 2.6.14
Symptom: When running quicken, opening the "Split costs"
dialog causes the program to go into an infinite loop,
flashingthe window to proper size then minimized and back
again, as fast as the display will allow.
It appears that the window is opened and the program
attempts to flash the caret but access is denied to
2011 Oct 10
1
Text Mining with Facebook Reviews (XML and FQL)
Hello,
I am trying to use XML package to download Facebook reviews in the following
way:
require(XML)
mydata.vectors <- character(0)
Qword <- URLencode('#IBM')
QUERY <- paste('SELECT review_id, message, rating from review where message
LIKE %',Qword,'%',sep='')
Facebook_url = paste('https://api.facebook.com/method/fql.query?query=
2009 May 22
1
rails 2.3.2, active scaffold, nested, ActionView::TemplateError (undefined method `format_column' for #<ActionView::Base:
Before I dig in any further (since I have no idea where to go from
here...)
Has anyone been succcessful with 2.3.2, AS, and nested scaffolds?
I have the latest of AS and the render_component plugin via
% script/plugin install --force git://github.com/lackac/render_component.git
-r rails-edge
I have an AS user_controller:
active_scaffold :user do |config|
...
2006 Jun 12
0
validates_associated -- explicitly setting collection?
Hi, I have a class (say Parent) that has many of two other classes, say
FirstChild and SecondChild. These could look like this:
class Parent < ActiveRecord::Base
has_many :first_children, :dependent => true
has_many :first_children, :dependent => true
validates_associated :first_children
validates_associated :second_children
end
class FirstChild < ActiveRecord::Base
2007 May 30
2
ActionView::TemplateError
Hi,
I have a strange problem that only occurs on the production server.
I''ve been banging my head for hours trying to figure it out with no
success. Below is a copy of the error from the production log.
ActionView::TemplateError (Expected /www/rails_apps/scanlan/current/
public/../config/../app/models/image.rb to define Image) on line #6 of
app/views/admin/design/_record.rhtml:
3:
2009 Nov 26
9
ActionView::TemplateError (can't convert ActiveRecord::Error into String)
I cannot work out why this error is appearing.
ActionView::TemplateError (can''t convert ActiveRecord::Error into
String) on line #3 of app/views/button/_show_enquiry.html.erb:
1: <h1>Send us a message</h1>
2: <% remote_form_for :enquiry, :url => {:action => ''send_mail''} do |
f| %>
3: <%= error_messages_for ''enquiry'',
2008 Mar 24
1
Support for unparsed responses and json parser
This is my first message to the list. Hello everybody!
I just wanted to let you know that I submitted a couple of patches for
two features that you might find them of interest.
The first one adds support for unparsed responses to
Facebooker::Session and Facebooker::Service models. This allows to use
the
Facebooker::Session.post method to obtain a plain response from the
Facebook API, useful for
2006 Jan 16
1
Problem with production on Dreamhost - TemplateError
Hi all,
I''m trying to deploy my app to Dreamhost for production. I''ve managed to
solve all of the Error 500s and it''s *almost* working.
When I try and view a page, I get a TemplateError that I don''t get when
I''m running from home using InstantRails under Windows.
The error is:
ActionView::TemplateError (undefined method `user?'' for
2010 Jul 22
0
TemplateError while rendering german special characters
Hi
I am using following versions of Ruby and Rails on arch linux
[hardik@sunshine: kandibank ]$ ruby --version
ruby 1.9.1p429 (2010-07-02 revision 28523) [x86_64-linux]
[hardik@sunshine: kandibank ]$ rails --version
Rails 2.3.8
I am using the sqllite database in development mode.
I can store a string having German special characters (umlauts) without
a problem i.e. Müller.
But when Rails
2008 Jan 16
10
Towards a 1.0 release
Hey everybody.
I''ve been using Facebooker on several projects over the last few
months and feel like it is really starting to mature. I''d like to push
towards a 1.0 release within the next month. I''d really like
everybody''s input on what still needs to be done, as well as some help
in wrapping things up. I''ve created a list of things that still
2013 Feb 28
1
Make `ActionView::Helpers::InstanceTag#tag_id`, `ActionView::Helpers::InstanceTag#tag_id_with_index(index)` public?
As I asked in StackOverflow<http://stackoverflow.com/questions/15127658/hoe-to-get-tag-id-from-a-record-in-form-for/15129741>
I think it would be helpful since we can dynamically create javascript code
to control each input tag in form helper, what do you think? Or there has
already been a solution?
--
You received this message because you are subscribed to the Google Groups "Ruby
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
I''m trying to use the Ferret DRB server to avoid concurrency issues when
using multiple mongrels. I can successfully add and edit data on my
index via the DRB server, however, when I search the index, I get the
following error:
DRb::DRbConnError (DRb::DRbServerNotFound):
/usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server''
/usr/lib/ruby/1.8/drb/drb.rb:1709:in
2006 Jul 05
0
ActionView::Base.field_error_proc where to put it?
I found out that ActionView::Base.field_error_proc can be modified to
output whatever error format I want for webform elements. At the moment
I have it sitting in application_helper.rb and it works just fine.
However, I feel that it isn''t the proper place for it. Where do you
normally store modified classes?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 May 19
1
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript in a model (a newbie question)
Hi all,
Please forgive me for this newbie question. But I really want to know how
how to access ActionView::Helpers::JavaScriptHelper::escape_javascript
method in a model.
I can access this method in view, but when call it in the model, it ends up
with undefined method.
It seems to me they are in different scope.
So what''s the best way to access view helper methods in model.
--
2006 Feb 10
2
How do I test actionview helpers in the console?
I would like to see the output of actionview helper methods, to be able
to play with it.
When I do the following in the console:
collection_select("job", "client_id" , @clients, "id", "name")
I get:
NoMethodError: undefined method `collection_select'' for
#<Object:0xb7cf1970>
I''d like to get something like:
<select
2006 Jan 11
0
Test ActionView Helper...
I''m just programming some needfull helpers i put the latest trunk
into the vendors folder. works fine.
But when i change something i have to restart Webrick. how can i test
it in an other way?
cu
Basti
--------------------------------------------------------------------
Validcode - Sebastian Gr??l
http://www.validcode.at
http://sg.validcode.at
_______________________________________
2005 Dec 19
0
ActionView::Helpers::FormHelper.text_field
Hi,
Is it possible to use the ActionView::Helpers::FormHelper.text_field with an
instance variable instead of a model. e.g.
In the controller:
def meth
@value = ''hi there''
end
In view:
<%= text_field ''value'', nil %>
It doesn''t work with what is above (doesn''t like the nil) and produces very
strange results replacing nil with
2009 Sep 24
2
Calling ActionView from uninheriting class
Hi Gurus, I have a class, specified in models cart.rb, which doesn''t
inherit from anything--it''s just a container
class Cart
...
I just discovered I can''t call number_to_currency in that class. Any
idea how to "include" it in my code? I tried
ActionView.number_to_currency without luck. I could kill a few lines
of non-DRY regexp code in cart.rb if I could
2012 Sep 03
0
time_zone_options_for_select method in ActionView::Helpers is not DST aware
We are using time_zone_options_for_select for the letting the user to
select the timezone to assign to an object.
But we are having trouble because currently we are on DST period, so in utc
-5 but the list is showing utc-6 (the normal offset)
As per usage suggested in this issue:
https://github.com/rails/rails/issues/7297.
I wrote a custom method to solve this
temporarily: