Displaying 20 results from an estimated 300 matches similar to: "generating nested resource path"
2007 Oct 01
0
View Spec - Misbehaving
I''m trying to write my first view spec; I''ve done some controller specs with
integrated views, but thought that isolating the views for some of these
tests might be nice.
So I wrote this:
> describe PlayerContainer, "show" do
>
>   PARENT_ID = 12
>   CHILD_NAME = ''Child Name''
>   PARENT_NAME = ''Parent Name''
>
> 
2007 Nov 20
3
How to test views with Nested Resources and Partials
Hi everyone,
I am relatively new to rspec and I am running into a wall in testing my
views. I have a RESTful resource Contracts with a nested resource of
Line_items.
I am trying to figure out how to test the "edit" form of the Line_items.
What complicates this is the nested routing and how to account for it,
and that there is a partial form (_form.haml) that both the edit.haml
and
2006 Feb 27
0
Mapping '':action/:id/:controller/'' doesn''t work
Hello People,
(I am not good at ROR yet. This post could be very lame.)
I am going playing with routes.rb.
Well, pretty much any combination of mapping works, a part from:
map.connect '':action/:id/:controller/''
In this case, the request is routed; however, I get:
---------------------------------------
Showing app/views/inputs/start.rhtml where line #8 raised:
No url can be
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
Thanks, first, to everyone who''s asked and answered questions on this list,
and to the creators of RSpec - it is all very helpful.  I''ve searched the
mailing list, and had a couple 2hr googling sessions that didn''t help me
find an answer.
I''ve run into a problem getting my first non-trivial view spec to run.  I
get an error when trying to generate a link_to()
2007 Sep 04
1
Routing error with nested resources
Hi -- I have a routes.rb file with the following in it:
<CODE>
  map.resource :admin do |admin|
    admin.resources :users
    admin.resources :clients do |client|
      client.resources :client_properties
    end
    admin.resources :areas
    admin.resources :properties
  end
</CODE>
My problem is when I try to access the show or edit actions of the
client_properties resource.
The
2005 Jun 22
0
HTTP_HOST in rails
Hi All,
Rails 0.12.1 doesn''t seem to be able to handle requests that don''t
provide the HTTP_HOST variable in my environment (apache2/fcgi).
This isn''t really a huge deal in practice, but it points to an actual
oversight in the code, or perhaps in my config. Thoughts?
ActionView::TemplateError (undefined method `+'' for nil:NilClass) on line #1 of
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1.
Having this page:
<h4>Editing project</h4>
<% form_for(:project, :url => project_path(@project), :html =>
{ :method => :put }) do |f| %>
    <p>
        Name <%= f.text_field :name %>
        Date <%= calendar_date_select :project, :target_date, :time =>
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line.  Note that I''m using edge rails.
form_tag verifications_path(@user), :method => :post do
verifications_path(@user) returns a string like "/users/3/
verifications".  That eventually gets sent to url_for, which expects a
hash.  And then it blows up.
It''s especially disconcerting since the documentation shows form_tag
as
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
Hey ROR users,
I have a small experimental web app which is for uploading files. The
web app uses carrierwave, uploadify. It works fine on small size
files. However, it can not handle large size files (>1G) efficiently.
Then I decided using nginx upload module, it worked well on small size
files after modification of codes,. But It fails on uploading large
files (>1G) because of http error
2006 Jan 09
1
testing UrlHelper in ActionMailer
Hi All,
So I found a helpful web page that explained how I could use things like
url_for in my mails:
http://wiki.rubyonrails.com/rails/pages/HowtoUseUrlHelpersWithActionMailer
However, I can''t test them properly. The problem is that when I create a
controller in my unit tests and pass it into the ActionMailer, it''s not
a real controller, set up as a controller is when it is
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys,
I was wondering if you are able to have a link_to_remote, having an
image_tag and the link_to_remote has a mouseover event that updates a
div.  Does the image_tag need the mouseover event?  I currently have:
<%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update
=> "big_pic", :onmouseover => {:action => :color_change, :id =>
@p_image.id})%>
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB:
  <% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class
=> ''fund'', :multipart => true}) do |f| %>
raises an error in my specs:
  No route matches {:action=>"index"}
but works fine in my app and generates the following, desired HTML:
  <form
2007 Dec 04
5
new facebooker
Hi guys,
I am new to this list and thought i''d say hello. I am using  
facebooker on a new project and so far I am really pleased with it. I  
saw that some users are having woes with the url_rewriter breaking  
urls for paths outside of the facebook canvas (i.e. your site  
supports both facebook and non-facebook users). I don''t have a  
prefect answer for this but I wrote a
2006 Feb 24
0
UrlRewriter problem in components
Hi!
It''s not really a big deal, because the workaround is easy, but I don''t 
really know if it''s a bug or a feature. Maybe someone can have a look on 
that.
I have a problem with creating links within components.
The scenario
============
My "index" action renders a "list" component by calling:
    <div id="list">
        <%=
2007 Apr 07
1
Undefined Method 'rewrite' when calling link_to
Whenever I try to pass an options hash to the link_to method (or
url_for, or button_to) I get this error:
undefined method `rewrite'' for
[]:ActionController::Routing::PathSegment::Result
The trace ends with
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/base.rb:522:in
`url_for''
2016 Jul 12
0
CEBA-2016:1407 CentOS 6 sssd BugFix Update
CentOS Errata and Bugfix Advisory 2016:1407 
Upstream details at : https://rhn.redhat.com/errata/RHBA-2016-1407.html
The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 
i386:
ea8bd669e4ddf4b0638663c1e27aa01fbc64be921f6c09f1afd396d830608927  libipa_hbac-1.13.3-22.el6_8.4.i686.rpm
2017 Aug 23
0
CEBA-2017:2505 CentOS 6 sssd BugFix Update
CentOS Errata and Bugfix Advisory 2017:2505 
Upstream details at : https://access.redhat.com/errata/RHBA-2017:2505
The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 
i386:
a13401b5a68e93e194fa862f3502ad7c93976151e61df31543612279904316d4  libipa_hbac-1.13.3-57.el6_9.i686.rpm
2018 Mar 14
0
CEBA-2018:0510 CentOS 6 sssd BugFix Update
CentOS Errata and Bugfix Advisory 2018:0510 
Upstream details at : https://access.redhat.com/errata/RHBA-2018:0510
The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 
i386:
7e2059795a5bc50e3b70cdb457d4daebc5de5384127e15e96b9185b2ca6cbd9c  libipa_hbac-1.13.3-58.el6_9.i686.rpm
2019 Jan 16
0
CEBA-2019:0063 CentOS 6 sssd BugFix Update
CentOS Errata and Bugfix Advisory 2019:0063 
Upstream details at : https://access.redhat.com/errata/RHBA-2019:0063
The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 
i386:
b22a1737a4e5697e44b3151c970a3433097410cf34039258b8fcfbfe8d1dc95b  libipa_hbac-1.13.3-60.el6_10.2.i686.rpm
2017 Feb 24
0
CEBA-2017:0302 CentOS 6 sssd BugFix Update
CentOS Errata and Bugfix Advisory 2017:0302 
Upstream details at : https://rhn.redhat.com/errata/RHBA-2017-0302.html
The following updated files have been uploaded and are currently 
syncing to the mirrors: ( sha256sum Filename ) 
i386:
62c9102db1c4c156a2d187b9e34bcd225b5fb5a581042aff538fa47b853b9456  libipa_hbac-1.13.3-22.el6_8.6.i686.rpm