Displaying 7 results from an estimated 7 matches for "ironald".
Did you mean:
ronald
2007 Nov 21
2
where do i get the return value of a javascipt method?
how do i get the value of a javascipt confirm() function?
a(:href=>R(DeleteUser, @user.id), :onclick => "javascript:confirm(''You
sure about this?'')"){label}
any tips?
thanks!
--
|^^^^^^^^^^^^\ .||
|NALDEVNGELSTA.___||''""|""\___,
| ________________ l | |__|__|_|)
(@!)!(@)"""""**|(@) (@)****|(@)
2008 May 08
1
query strings built by R method can''t handle multiple values from checkbox selections
query strings built by R method can''t handle multiple values from checkbox
selections
R(SomeRoute, :reply_status=>%w{1 2 4})
should return
query_string="
http://localhost:3301/someroute/?reply_status_id=1&reply_status_id=2&reply_status_id=4
"
qsp(query_string) -> {"reply_status_id"=>["1", "2", "4"]}
from
2007 Nov 06
4
help on helper module inclusion/extension
I want to include helper methods included to my Camping App from by
requiring an external file but I can''t seem to include helpers from
another module.
module CampingHelpers
def self.included(base)
base::Helpers.send(:include, Helpers)
end
module Helpers
def show_test
p "test"
end
end
end
Camping.goes :CampingApp
...
module
2008 May 28
3
Plug-in support for Camping Apps
# camping_plugin.rb
# plug-in support for Camping Apps
# require ''lib/camping_plugin''
# override R helper method to your liking :-)
module Camping
module PluginHelpers
def R_with_module(c,*g)
p,h=/\(.+?\)/,g.grep(Hash)
g-=h
raise "bad route" unless u = c.urls.find{|x|
break x if x.scan(p).size == g.size &&
2008 May 23
0
R(c,*g) helper method can''t handle nested hash input params
params= {"search"=>"Search",
"date_begin"=>"2007-05-01",
"date_type"=>"created_on",
"order"=>1,
"report_type"=>"year_end",
"person"=>
{"reply_status_id"=>"1",
"created_on"=>
Tue, 01 May 2007 00:00:00 +0000..Fri, 23 May 2008
2008 Jun 05
2
how to add a method without coding it directly into app?
i''m missing something here.
how would I code this outside the application to be shared with other
Camping apps?
module Blog::Controllers
module AuthenticationHelper
def self.included(base)
class << base
define_method :authenticate do |*a|
a.each do |meth|
if method_defined?(meth.to_s)
2008 Apr 10
1
help on ajax autocompleter
the div list of words doesn''t get updated
# controller
class Words < R ''/words''
def get
("word01".."word20").each{|w| (@words ||='''') << "<li>#{w}</li>"}
render :_list
@words
end
end
#views
#
def layout
html do
head do
link :rel