Displaying 20 results from an estimated 20000 matches similar to: "question abour partial page templates?"
2006 Jun 05
0
question about partial page templates?
Can I call helper functions from the Partial Page Templates?
Because I want to call a function from the ApplicationHelper int a
partial page template, but it says that the function is not defined
Rodrigo Dominguez
Iplan Networks Datos Personales
rdominguez@iplan.com.ar rorra@rorra.com.ar
www.iplan.com.ar <http://www.iplan.com.ar/>
www.rorra.com.ar
2006 Mar 09
6
rmagick and captcha
Has anyone implemented a captcha with ruby on rails and rmagick?
I tried this example:
http://wiki.rubyonrails.com/rails/pages/HowtoSecureFormsWithNoisyImages
but I got an error:
undefined method `size'' for #<NoisyImage:0x34d8070>
Thank you
--------------------------------------------------
Rodrigo Dominguez
?
Iplan Networks ???????????????Datos Personales
2006 Jun 05
4
transactions
Can you give me some links where transactions in rails are explained in
depth? Thank you
PS: I''ve looked in google, but I just couldn''t find good articles, I''m
working with postgresql
Rodrigo Dominguez
Iplan Networks Datos Personales
rdominguez@iplan.com.ar rorra@rorra.com.ar
www.iplan.com.ar <http://www.iplan.com.ar/>
2006 May 24
2
array parameters in web services
I''m working in a web service, actually, I have:
class UnifiedLoginApi < ActionWebService::API::Base
class CLL_Metadata < ActionWebService::Struct
member :key, :string
member :type, :string
member :value, :string
member :webapplication_id, :string
member :user_tenfold_id, :string
member :login_username, :string
2006 Feb 27
21
what hardware shuld I but to manage 100k of connections per day?
I''m doing a fotolog for a company.
It''s expected to manage about 100k of connections per day and about 1500
concurrents connections.
What hardware should I buy to manage those numbers of connections?
I''m planning to use slackware + lighttpd + fastcgi, but perhaps we will
have to reuse some scripts in php, in that case I would use slackware +
apache + mod_php + fastcgi
2006 Aug 14
1
various returns parameters in action web service
I''m working with ActionWebService, building a SOAP Service.
I realize that I can returns various values, in example:
api_method :foo,
:expects [ { :value1 => :int },
{ :value2 => :int } ],
:returns [ { :return_value_1 => :int},
{ :return_value_2 => :string},
{ :return_value_3 =>
2006 Feb 27
2
list of countries, states, cp, etc.
I''m doing a registration form.
I saw many registrations forms which asks you for a country and it lists
all the countries of the world, and when you select a country the form
is actualized with all the states or provinces, and when you select a
state/province then the form is actualized with all the cities.
I''m looking to do something like that, is there a free service or pay
2006 Jun 21
3
validation help
I would like to validate a number within a certain range.
To first test that a entry is a valid number i use
validates_numericality_of :my_number, :message =>''sorry, not a number''
to test if the number is within a certain range i use
validates_inclusion of :my_number, :in => min..max, message => ''outside
range!''
If the numericality test fails, I
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for
an action, and the page needs to reload. link_to_remote worked great
when I was updating a DOM element but obviously won''t work when I need
to reload a page. Is there an option
--
Posted via http://www.ruby-forum.com/.
2006 Jan 28
7
cool components in the form
Is there a easy way to add components like:
http://www.dynarch.com/projects/calendar/
http://tinymce.moxiecode.com/example_full.php?example=true
in ruby forms, by plugins or whatever?
Thank you
Rodrigo Dom?nguez
Iplan Networs
www.iplan.com.ar <http://www.iplan.com.ar/> ? rdominguez@iplan.com.ar
www.rorra.com.ar <http://www.rorra.com.ar/> ? rorra@rorra.com.ar
--------------
2006 May 04
5
web service authentication
after almost a week of trial and error, i''ve finally got a hold of
creating a web service in rails. after all this time though, i''m still
not quite sure if i can make it work the way i want it to.
i was basically trying to create a login portal so that the users at our
company can have one place to login for all of our internal
applications. well, right now - i can have each
2008 Aug 08
2
template.expect_render fails when partial is rendered from a helper
My spec;
describe ''subnav rendering while logged in'' do
before do
template.stub!(:logged_in?).and_return(true)
template.stub!
(:current_profile).at_least(:once).and_return(mock_profile)
end
def do_render
render "/homepages/show.html.erb"
end
it "should render the logged in partial for homepages" do
2006 Apr 04
1
ActiveRecord object
I have an ActiveRecord class
class User < ActiveRecord::Base
end
and I want to define an attribute, in example "links", links will be an
array.
class User < ActiveRecord::Base
attr :links
end
and now, I want links to be an array, so I do
class User < ActiveRecord::base
attr:links
def initialize(attributes)
super(attributes)
@links =
2006 Jun 23
5
how can i alter the validations error messages.
hello
my name is reynaldo
my question is the next.
i want change the text of the validations error messages generated by
ruby when you don''t wrote properly the data in the form.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 28
5
please explain web services
could someone explain some of the uses for a web service. i''m reading
about how to make them, but i''m still not quite sure what they''re good
for.
i have multiple rails apps that i would like to pass user information
back and forth to. i''m not sure if something like this could help me or
not.
thanks
--
Posted via http://www.ruby-forum.com/.
2006 May 13
1
undefined method `strftime'', being called from a partial.
Hi,
I''m having an issue with calling a function that I''ve defined in
ApplicationHelper called format_time:
module ApplicationHelper
def format_time(time)
time.strftime("%a %b %d, %I:%M%p")
end
end
I use this function in my views to format the Time.now that I would have
stored in my tables as a DATETIME. I''m able to use this function, without
any
2010 Apr 08
1
Progressive output on the views
There is one web page that because it request data from several web
services, it delays between 20 and 200 seconds.
So my idea is to display the status of the data that is being fetched
(or even the data as its being fetched) to the user, so he don''t have to
wait like 200 seconds thinking that perhaps the page is not working.
But until now, I always render the web pages totally at the
2006 May 29
2
How to use script/runner
I''ve read the wiki and Agile and can''t find the answer.
When using script/runner I''ve gotten simple model functions similar to
the -help example to run:
$script/runner ''puts Vendor.find(1).name3''
where Vendor is a model.
However when I try to run a function in a controller it doesn''t work:
$script/runner ''puts
2006 Apr 03
1
Helpers for ActiveMailer templates
What helpers, if any, should be available to a view for ActionMailer? Even
ApplicationHelper methods don''t seem to be available.
This is on Rails 1.0.
David
2006 Jan 30
4
characters are not being correctly displayed
ok, here is my problem:
I started at my house a rails project, and I''m from argentina so I use
spanish, and I uses characters like ''?'', ''?'', ''?'', ''?'', ''?''.
In my house, every was working ok.
Then I brought the application at office, and when I start the server, I
just can''t see those