similar to: Howto work with a page not generated by the scaffold ?

Displaying 20 results from an estimated 1900 matches similar to: "Howto work with a page not generated by the scaffold ?"

2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book. The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application. For instance, it will be great to see how one can implement the typo blog
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
2002 Feb 13
3
Verba Volant
We have been requested to insert the following email address, "samba@samba.org", in the Verba Volant Newsletter database. Through this daily service you will receive a quotation, selected from amongst the most celebrated philosophers, writers and poets of all time and translated into many languages and dialects by volunteers worldwide. If you would like to confirm your subscription to
2005 Dec 30
4
Convert "é" in "&eacute;"
I try to find an function to convert characters in html chars. "é" become "&eacute;" There is something in RoR 1.0 to do that ?
2009 Jun 30
2
[LLVMdev] About debug in LLVM!!!
> 2. The backend (llc) converts that to Dwarf (or something else as > desired by that back-end). > How advanced is LLVM Dwarf generation compared to GCC ?
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 May 09
9
Active Record HELP!!!!!
Hello, Can someone kindly tell what the heck creating a relationship does in active record? I understand the idea of joining the tables and such. But how do I use it? Is it available in a scaffold? How about when I want to view a record and want to see all the joined data from the other table? Do I have to manually code the data I want from the other table? Does this automatically make the
2006 Jun 26
9
table name
hello freinds... I m very new to ruby on rails and i m facing a problem... whenever i add Scaffold table and try running in that broser it shos error that the particular tbale doesnot exist.... also it changes the name of the table , for eg.table names Recipe gets changed to Recipes and in order to get ountput i need to change the name of the table TO Recipies........is there any reason to
2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id,
2006 Feb 06
4
Relationship Question (STI)
My girlfriend and I have been dating for two years, and she just told me she has an STI... Actually, I currently have three different models, like: Dog, Whale, Monkey They all have some similar attributes, but, they are unique enough to break into their own models. I could use STI, but I think the table would just have too many columns. Now, I wanted to let the Dog''s, Whale''s
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds
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