Displaying 20 results from an estimated 30 matches for "oo00oo".
Did you mean:
o00o
2006 Mar 08
7
Function could determine the caller action ?
Is it possible to determine which action call the function ?
In example, func_test in ApplicationController could determine which
action from SiteController is calling her ?
in class ApplicationController I have
def func_test
if ( calling from index )
return "1" end
if ( calling from contact )
return "2" end
end
and in class SiteController
def
2006 Mar 04
6
Determine if a value is an instance of String , or Array , or...
each loop inside a mixed hash
I need to determine if the value is an instance of String
How ?
hash.each do |k,v|
if v ( instance of ) String
hash[ k ] = v.capitalize
enf
end
2006 Mar 15
4
sub-selection with $
Hello,
I have 2 navigations ( mainnav and subnav ) with 2 lists
List have same names ( li0 li1 li2 )
What is the best way to select li1 of subnav with prototype 1.4 in this
case ? I just want to hide/show it
Thanks
<div id="mainnav">
<ul>
<li name="li0"><li name="li1"><li name="li2">
</ul>
</div>
<div
2006 Jan 17
6
link_to or helper to generate a javascript:history.back() ?
Hello,
There is an link_to option or an helper that generate a link like :
<a href="javascript:history.back()">Back</a>
Thanks
2005 Dec 30
4
Convert "é" in "é"
I try to find an function to convert characters in html chars. "é"
become "é"
There is something in RoR 1.0 to do that ?
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like
<a href="http://www.google.com" target="_blank" >google</a>
with the link_to function ?
Thanks
2006 Jan 16
5
A function that return a link_to, Possible ?
Hello, I try this :
in application_helper.rb
-----------------------
def lnk bla
return link_to bla, { :controller => bli , :action => "blo" , :id
=> "blu" }
end
in file.rhtml
-----------
<%= lnk "yo!" %>
This return an error. There is a way to do this or something similar, or
this is completly impossible ?
Thanks
2006 Mar 03
2
ENV[''RAILS_ENV''] pb
Hello,
I want to put my app in production mode. So I write this line in
environment.rb :
ENV[''RAILS_ENV''] = "production"
I restart webrick. If I write <%= ENV.inspect %> I have the correct
"RAILS_ENV"=>"production"
But browse my site and look the log, the development.log is still
growing and the production.log stay to 0 ko
2006 Mar 04
2
application_helper can "include" another helper ?
My "application_helper.rb" become to large.
I have basic functions that I use for all projects.
Is it possible to define thoses functions inside an external
"basic_helper.rb" and include it in "application_helper.rb" ?
2006 Feb 08
3
Extends ActiveRecord from the application ?
Hello,
I just want to create a method that will be available for all models. Is
it possible ?
2006 Feb 09
2
How to call a standard function from a class inside the lib folder ?
Hello,
I try to use url_for from a class inside the lib folder
class Test
def self.mytest options
url = url_for( options )
end
end
But I have this error :
*undefined method `url_for'' for Test:Class*
How can I use it ?
Thanks
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Jan 18
5
redirect_to with an anchor, how ?
Hello,
I try this :
redirect_to :action => ''infos'' , :id => params[:id] , :show => "comments#a"
i want this : .../infos/15?show=comments#a
but I have this : .../infos/15?show=comments%23a
Someone could tell me how generate an anchor link ?
Thanks
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello,
Is it possible to fill the textarea content when using the text_area
function ?
Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2006 Jan 23
1
Image Upload > Submit with AJAX that replace a div content with the uploaded file. Possible ?
Hello,
I just want to know if it possible to do an image upload with AJAX that
replace a div content with the uploaded file.
Well, with link_to_remote, I know how to do simple AJAX. But with a
submit button, I have no idea.
Someone have an idea ?
2006 Feb 09
13
Howto work with a page not generated by the scaffold ?
I am a newbie Ruby and RoR user. In my tests using the turorials that
I found over the web, everthing is working fine and I am very impressed
about RoR framework.
As I am a Delphi developer, without any web development experience,
There is some thing hard to understando and I didn''t find a tutorial
about this.
I wonder how to create a non-scaffold page ? I have customers,
2006 Jan 19
8
Pagination_links without "?page=" but with params[:id]
Hello,
With default pagination I have this :
<a href="/users/infos/3?page=1">1</a>
<a href="/users/infos/3?page=3">3</a>
but i need this :
<a href="/users/infos/1">1</a>
<a href="/users/infos/3">3</a>
I need to remove the "?page=" parameters and rewrite a little the link ( with a link_to ? )
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ?
I have an error :
|undefined method `content_tag''|
class ApplicationController < ActionController::Base
def test
return content_tag("a","test")
end
end
2006 Mar 07
2
Determine which action, which controller is calling ?
Hello,
Is it possible to determine wich :action , wich :controller is calling
the function func_test in ApplicationController ?
in class ApplicationController I have
def func_test
if ( calling from index )
return "1" end
if ( calling from contact )
return "2" end
end
and in class SiteController
def index
@var = func_test
end
def
2006 Mar 13
1
Styling pagination links ?
Hello,
How to style the pagination links ?
I simply try to set the number of the current page to another color. But
I have the "..." also colored.
Paginator have options to style ?
Thanks
2006 Jan 02
2
link_to : add title tag ?
How :
<a href="/show/all">All</a>
Could become :
<a href="/show/all" title="Show All" >All</a>
This is possible with the standdard link_to function ?