Displaying 20 results from an estimated 900 matches similar to: "Passing params between actions?"
2006 May 26
0
has_and_belongs_to_many with fk constraints?
Hi folks,
I''m wondering if it''s possible to use foreign key constraints on the join
tables of a has_and_belongs_to_many relation. Specifically, I get this
error when I try and delete a model I''m using, named saved_search, which is
many-to-many with neighborhoods. Any ideas? Thanks for any help. :-)
-Eric
Code:
@saved_search.destroy
Error:
Mupdate or delete on
2006 Jul 26
0
page.replace_html render(:action => ''other_action'')
I want to be DRY. I have a controller action, component, that renders
html.
I have another controller action, component_update, that returns RJS:
This what I''d like for ''component_update.rjs'':
page[params[:scaffold_id]].replace_html render(:action => "component",
:layout => false)
page[params[:scaffold_id]].visual_effect :highlight
But, the render is
2006 May 13
8
Which Linux flavor for a Rails server?
Hi folks,
I''m a linux noob, and I''m trying to pick a distro for my rails server. I
don''t want to start a flame-war about linux distros! I''m interested in the
best distribution for these criteria:
1 - Simplicity of getting ruby and rails set-up (gem updates)
2 - Stability (it is a server, after all)
3 - Support resources (community, and as a fall-back, paid
2010 May 25
8
params merge on for every action
hi
i got to merge a hash of parameters for every action for every
controller. the only thing i could image is modifying a super class
method.
so, how could i modify the method that take care of setting up the
parameters? is it ActionController.parameters?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2015 Oct 20
0
Re: [PATCH 2/2] actions: turn some params into RelativePathnameList (RHBZ#1174551).
On Tuesday 20 October 2015 14:43:53 Richard W.M. Jones wrote:
> On Tue, Oct 20, 2015 at 01:59:10PM +0200, Pino Toscano wrote:
> > Use RelativePathnameList as type for lists of relative paths, as used in
> > some listing-alike APIs. This way we can ensure absolute paths in those
> > lists are rejects outright.
> >
> > As a consequence, test-big-dirs.pl does not
2015 Oct 20
0
Re: [PATCH 2/2] actions: turn some params into RelativePathnameList (RHBZ#1174551).
On Tuesday 20 October 2015 15:22:22 Richard W.M. Jones wrote:
> On Tue, Oct 20, 2015 at 03:50:31PM +0200, Pino Toscano wrote:
> > On Tuesday 20 October 2015 14:43:53 Richard W.M. Jones wrote:
> > > On Tue, Oct 20, 2015 at 01:59:10PM +0200, Pino Toscano wrote:
> > > > Use RelativePathnameList as type for lists of relative paths, as used in
> > > > some
2015 Oct 20
0
[PATCH 2/2] actions: turn some params into RelativePathnameList (RHBZ#1174551).
Use RelativePathnameList as type for lists of relative paths, as used in
some listing-alike APIs. This way we can ensure absolute paths in those
lists are rejects outright.
As a consequence, test-big-dirs.pl does not need to prepend the
directory name anymore before calling listing-alike APIs: previously
they didn't fail, but the returned lists contained only invalid
elements (and only their
2015 Oct 20
2
Re: [PATCH 2/2] actions: turn some params into RelativePathnameList (RHBZ#1174551).
On Tue, Oct 20, 2015 at 01:59:10PM +0200, Pino Toscano wrote:
> Use RelativePathnameList as type for lists of relative paths, as used in
> some listing-alike APIs. This way we can ensure absolute paths in those
> lists are rejects outright.
>
> As a consequence, test-big-dirs.pl does not need to prepend the
> directory name anymore before calling listing-alike APIs: previously
2015 Oct 20
2
Re: [PATCH 2/2] actions: turn some params into RelativePathnameList (RHBZ#1174551).
On Tue, Oct 20, 2015 at 03:50:31PM +0200, Pino Toscano wrote:
> On Tuesday 20 October 2015 14:43:53 Richard W.M. Jones wrote:
> > On Tue, Oct 20, 2015 at 01:59:10PM +0200, Pino Toscano wrote:
> > > Use RelativePathnameList as type for lists of relative paths, as used in
> > > some listing-alike APIs. This way we can ensure absolute paths in those
> > > lists
2013 Mar 22
3
Broken 2.x download links
Greetings,
I was trying to update the Lustre Wikipedia page today, and while
checking the latest release version, I found that the 2.x download links
from these pages do not work:
http://wiki.lustre.org/index.php/Download:Download
http://lists.lustre.org/pipermail/lustre-announce/2010-August/000250.html
http://downloads.lustre.org/public/lustre/
http://wiki.lustre.org/index.php/Main_Page
I
2006 Apr 29
3
Noob question... confused
If I have several controller actions which have this same line of code (or
more), how can I DRY up the line without running into complaints about
redirecting or rendering only once? If I put the line in another method in
my controller, won''t it think I''m redirecting?
I want to dry up lines like this: @listing = Listing.find(params[:id])
def customerview
@listing =
2006 May 08
2
Documentation for rails
I''m trying to convince a co-founder of the startup I''m working on that rails
is the new black, or possibly the next sliced bread. Does rails ship with
doc, or the API? I can''t even figure out how to download it from
api.rubyonrails.com, or if that''s possible. When I look in
C:\ruby\lib\ruby\gems\1.8\gems\rails-1.1.2\doc I see nothing of use. I
have to admit
2010 Dec 31
1
Parsing params (one of the params value has ampersand)
Hello,
I am trying to parse a URL of this format
http://example.com/links?deal_id=161&url=http://another_example.com/index.php?route=product/product&product_id=275
I need to get 2 params
deal_id and url
However, in the above example, if I do params[:url], then I get
"http://another_example.com/index.php?route=product/product"
product_id=275 is dropped on the floor as its
2012 Jul 06
1
Bug#680500: xcp-xe: Tab in autocomple of params for 'xe pif-list params=' erase some arguments
Package: xcp-xe
Version: 1.3.2-8
Severity: minor
When autocomplete for bash is activated following misbehavior happens:
xe pif-list params=device,m[Tab]
expected behavior:
autocomplete to xe pif-list params=device,management
actual behavior:
xe pif-list params=management
('device' removed)
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500,
2006 Mar 31
3
params vs @params
Is there a difference in the way that params[] and @params[] are handled?
Is the ''handling'' done by Ruby or Rails?
A pointer to the relevant documentation would be sincerely appreciated. Or just an answer would be ok too ;-)
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 09
1
[LLVMdev] Instruction::getOpcodeName()
When compiling a release version on Linux with GCC 3.4.4, I get the
following warnings repeated multiple times when linking LLVMCore.o:
/usr/bin/ld: `.gnu.linkonce.t._ZNK4llvm11Instruction13getOpcodeNameEv' referenced in section `.gnu.linkonce.r._ZNK4llvm11Instruction13getOpcodeNameEv' of /proj/llvm/build/lib/VMCore/Release/Instruction.o: defined in discarded section
2006 May 10
0
CentOS-announce Digest, Vol 15, Issue 4
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
2007 Mar 09
1
how to translate request.params[''PATH_INFO''] into physical file
Hi,
What''s the most reliable way to find out the physical file location when
given a request.params[''PATH_INFO''] ?
I guess I need to know mongrel''s document_root or something similar.
tia,
Jeroen
2007 Oct 16
1
Stub ActionController::Base#params
Has anyone had any success stubbing ActionController::Base#params? The
following is not intercepting calls to params[:foo] in my controllers:
ActionController::Base.stub!(:params).and_return(:foo => ''bar'')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/282a76ba/attachment.html
2007 Sep 22
0
How to DRY up controller action spec with different params.
I tend to write a fresh description block for every change in the parameters
for that specific action, because I hate conditionals in the example
describtion, e.g.:
describe SomeController, "handling GET /path/with/param/3" do
it "should do this"
it "should not do this if"
it "should still do that in both cases"
end
Seperate description blocks keep