Displaying 20 results from an estimated 60000 matches similar to: "reworking controllers"
2005 Dec 16
2
Shared code for controllers
Hi,
I think that this is made from a plugin or something in /lib/, but i really
don''t know which is the better way:
I have this in my MediasController:
def mediatype_medias_options
if params[:id]
begin
@mediatype = MediaType.find(params[:id])
render :inline => "<%= options_from_collection_for_select @
mediatype.medias, ''id'',
2005 Dec 28
3
[Templates] [Noob] templates across controllers?
Fine Rails Hackers:
I am trying to decide how to approach a templating concern.
I would like to define a standard template for all of my pages (including a
basic header, styles, footer) across my five base controllers: desktop,
events, financials, and records, account.
Is there a top level place to declare a template across the entire
application regardless of the controller?
I understand how
2005 Sep 06
1
error_messages_for - different controllers, one view [revisited]
Hi there,
some time ago there were two posts on this subject on this list:
One way that might satisfy the elegence factor is to treat your
> comment controller as a component in this case, calling
> render_component within your post controller where you need to process
> the comment.
>
> http://manuals.rubyonrails.com/read/chapter/73
>
> There are a few ways you could do
2006 Feb 27
0
RE: FW: Calendar widget
Perfect, thanks Marco, great help! Now, why didn''t I think of that? Lol!
-----Original Message-----
From: Marco M. Jaeger [mailto:mail-yVS5avHIROZWk0Htik3J/w@public.gmane.org]
Sent: Monday, February 27, 2006 2:02 PM
To: ''www.dhtmlgoodies.com''
Subject: RE: FW: [Rails-spinoffs] Calendar widget
Thank you Alf - I appreciate your fast response
Marco M. Jaeger | Url:
2006 Jan 09
5
form with more than 1 file upload field saves 0 byte file for 1 file field
Im using the file_column plugin to upload files from my application. The
problem I am encountering is that I have a form with 2 file upload fields
and when I submnit that form with files selected, I would get a message from
the browser(Firefox) saying that a script on the page is taking a long time
to execute and whether I want to cancel it or continue. Whichever option I
choose, only 1 file(PDF)
2005 Dec 27
0
Edge Rails idea -- was [DRY relative to edit and show]
Just got around to understanding your idea Rich.
Your idea seems to apply to every controller with new/edit/show views,
so I think this is a better idea for the edge rails folks to implement
generically than for a newbie like me do as a one-off.
Thanks
Greg
On 12/23/05, Rich Clingman <Rich-xT5DcnBKZlNBDgjK7y7TUQ@public.gmane.org> wrote:
>
> > It would be nice if rails had a
2005 Aug 08
0
RE: Rails is a Hammer? (was Rails is Mainstream ?)
No. Garage full of wood and tools collecting dust.
Isn''t that the definition of "hobby" ?
Peter J. Fitzgibbons
Applications Manager
Lakewood Homes - "The American Dream Builder"(r)
Peter.Fitzgibbons-STCS76aLmhk1y/cD6r8xzl6hYfS7NtTn@public.gmane.org
(847) 884-8800
-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Jul 31
6
Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and
everything went fine up till the part where I had to install gems using gem
install. I would get this stacktrace:
Attempting local installation of ''rake''
Local gem file not found: rake*.gem
Attempting remote installation of ''rake''
2005 Dec 18
0
Couldn''t find Login with ID
Hi,
I am a lerarner and i Am getting this problem when I try to delete.
I am not able to understand what is this ID and why its like this.
Any one explain me what does it mean and how to solve this . This is as also
with show/edit.
Thanks in advance
Couldn''t find Login with ID=30640940
RAILS_ROOT: ./script/../config/..
2005 Aug 25
1
newbie questions about hosting address
Dear Rails groups,
thank you for all the previous helps in this group, and me being a newbie is getting more comfortable with rails and now I finish most of the scaffold modification without much problem. My question is(I know it''s absolutely basic questions but I''m a real outsider :~( ) I have been developing in my own pc, now my office ''s other people will test on it,
2006 May 15
5
Finding out the file attributes in FileColumn models
Is there a way to find out the attributes that have been passed to
file_column in models? I''ve looked through the source and it seems that the
file_column methods are generated at runtime but there''s actually no class
or instance variable that hold the file attribute.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 18
1
RE: Rails-spinoffs Digest, Vol 12, Issue 29
Issue 1: <%= @pic %> instead of <% @pic %>
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of
rails-spinoffs-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Sent: Wednesday, May 17, 2006 11:13 PM
To:
2005 Oct 18
0
RE: Error: "onclick() is not a function"
I see what he is saying now. When you assign a click event with the
Event.observe it does not allow you to call it with the
$(''xxx'').onclick(); command as it''s looking for the onclick tag in the a
tag.
I''m stumped on a way to get this to work.
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
hi i think my example is very simple and straightforward so i''m not sure if
it meets your needs (change revert:true to revert:false from a draggable
after I drop it on a droppable so it doesn''t return to its original place.)
i did this
# 2 divs created here
<script language="javascript">
new Draggable(''drag'', {revert: false});
2006 Mar 31
9
File upload progress bar
I''ve seen a few demos online, for php, but I''m looking for a file upload
progress bar implementation with Prototype. Can anyone point me in a good
direction for one?
I''m not using Rails, so I can''t use the upload_progress addon,
unfortunately.
Thanks for any info
Jim
_______________________________________________
Rails-spinoffs mailing list
2006 May 19
1
RE: Re: Content Rotate, unwanted flashing on Firefox
Never mind........it looks fine for me in Windows 2000 FireFox 1.5.0.3
-Andrew Martinez
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Martinez, Andrew
Sent: Friday, May 19, 2006 5:01 PM
To:
2006 Jan 08
0
RE: Replacing an html chunk with a different htmlchunk
Actually, I see there are two other prototype calls:
Element.remove(''foo'');
Which does a parentNode.removeChild(), and
Element.update(''foo'', ''some html'');
Which does element.innerHTML = ''some html'', and executes any script that
is in the string you pass in.
-----Original Message-----
From:
2006 Mar 22
1
RE: Support for window scrolling for draganddrop
To answer my own question, yes. I looked at the trunk and it passes the
option on from Sortable.
Greg
> -----Original Message-----
> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Gregory Hill
> Sent: Wednesday, March 22, 2006 12:51 PM
> To:
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
..lol... and I screwed up the option... one more time...
var myActiveSpanBase = new ActiveSpan({color: "red"});
Object.extend($(''someSpan''), myActiveSpanBase);
$(''someSpan'').setup();
Or, more concisely...
Object.extend($(''someSpan''), new ActiveSpan({color: "blue"});
$(''someSpan'').setup();
2004 Nov 30
1
RE: question about rails regarding handling more than onetable in one view
Hi, Jarkko:
Thanks for the quick reply.
I understand I can use ActiveRecord to specify the relation between the
table as you have suggested,
The part that I have trouble to understand is
1. Since I have a third table ProvWorkAtDept, do I need to specify this
table somewhere when I define Provider or Dept?
2. If the provider view has both the provider name and several depts the
provider