Displaying 11 results from an estimated 11 matches for "bontina".
2007 Jan 29
6
RJS problem
Hi,
I''m implementing a "digg-like" page, that once you digg. The score for
each item will dynamically reflect your current action +1 .
I am not sure what''s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
def arouse
2007 Jan 31
2
SystemStackError: stack level too deep
I''m testing the http module in console.
BUt I got the following error.
Anyone knows why?
>> Net::HTTP.get_print ''www.google.com'', ''index.html''
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
`newobj''
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
2007 Jan 11
6
nil object while the required parameter are in the request
I''m having an application as follows.
I have all the parameters for as object appended in the url.
And there is an action in the controller like this
def newlet
render :layout=> false
@product = Product.new
if request.get?
@product.title= params[:title]
@product.description = params[:description]
@product.primary_link = params[:primary_link]
2007 Jan 15
5
ActionController::UnknownAction (No action responded to xxx)
I have a new method defined in a existing controller.
All the methods I called in these are workable.
But somehow the new method is not recognizable.
------------------new method I
added--------------------------------------------
def push
# if fair
begin
@product = Product.find(params[:id])
rescue
logger.error("Attempt to access invalid product #{params[:id]}")
2005 Dec 24
10
can''t find view from Mailer?
Hi everyone,
Like so many other here, I too am new to Rails (and Ruby), and so far
it''s been a great experience. I haven''t been able to get around one
problem though. When trying to use the mailer, I recieve an error like
this:
ActionView::ActionViewError in Tell_friend#send_email
No rhtml, rxml, or delegate template found for send_to_friend
The scenario is this:
A form on
2007 Jan 23
0
Inconsistency of data in controller and irb
I have a find query in a controller like this
def loadtags(product)
@tags =
Tagging.find_all_by_taggable_type_and_taggable_id(0,product.id)
puts product.id
puts @tags.collect{|x| x.id}
@tags.collect!{|x| x.id}.collect!{|x| Tag.find(x)}
puts @tags.collect{|x| x.name}
puts ''----------------------------''
@tags
end
and I test with the same parameters in irb
but
2007 Jan 27
0
Problems with implementation of dynamically updating scores
Hi,
I''m implementing a "digg-like" page, that once you digg. The score for
each item will dynamically reflect your current action +1 .
I am not sure what''s
In the controller I have an action responsible for increase of the
score.It has a corresponding rjs in view.
--------------------------------------------------------------------------------
def arouse
2007 Mar 13
0
Net::SMTPFatalError 555 5.5.2 Syntax error a8sm19427994poa
Hi,
I''ve sent e-mails with action mailer in other controllers.
Now I''m repeating the same trick to send emails.
I have
def bt_notify( bt )
@recipients = bt.product.user
@body["product"]=bt.product
@body["bt"]=bt
@from = "xxxx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
@subject = "blahblah"
end
in my mailer.rb
and
2007 Mar 13
0
ActionMailer error
Hi,
I''ve sent e-mails with action mailer in other controllers.
Now I''m repeating the same trick to send emails.
I have
def bt_notify( bt )
@recipients = bt.product.user
@body["product"]=bt.product
@body["bt"]=bt
@from = "xxxx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
@subject = "blahblah"
end
in my mailer.rb
and
2007 Jan 31
0
warning while requiring 'net\http'
Anyone knows what''s wrong with my configuration?
Thanks
>> require ''net\http''
C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:281: warning: already
initialized
constant Revision
C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:282: warning: already
initialized
constant HTTPVersion
C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:1121: warning: already
initialized
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):