Displaying 5 results from an estimated 5 matches for "assets_path".
2011 Mar 08
1
form_tag for search bar with Rails 3.0.5
I have a controller and view that should be providing a search bar
that brings up that brings up a selected record on submission. I have
tried several variations, including just specifying the assets_path,
but usually end up with either an error or a submission to the index
action, rather than the show action. Currently, I have the following
in my index.html.haml:
= form_tag({:controller => ''assets'', :action => ''show''}, :method
=> :GET) do
.field
=...
2008 Dec 03
5
How to test a plugin
Guys,
I''ve created a plugin, i wanna put my automated test there.
However, I got bad file descriptor error when i run the test like normal
unit test file:
"ruby plugins/acts_as_fox/test/acts_as_fox_test.rb"
How to test a plugin?
Also, is it right to say that I should only put my unit tests (but not
functional test for example) for the plugin in the plugin test folder?
2010 Sep 09
1
406 Not Acceptable with swfupload
...</span>
</div>
</fieldset>
<% end %>
</div>
<div id="divFileProgressContainer" style="height: 75px;"></div>
<div id="thumbnails"></div>
<p><%= link_to ''back'', assets_path %></p>
</div>
Once the upload completes, the browser throws a 406 error, despite the
image uploading.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to thi...
2010 Nov 01
2
Creating RESTful helpers on the fly
If I have a resource called ''assets'' then I get for free a bunch of
helpers, like
assets_path
new_asset_path
and so forth, right?
I would like to be able to create a call to one of these on the fly when
I only find out the name of the resource at run time. For example I
would like to do this:
resource_name = "assets"
resource_path(resource_name, method => :new)
Anyone know...
2007 May 26
11
RSpec
Hi RSpec Mailing list,
I''m new to RSpec and I am trying to get it running with the caboo.se sample
rails app.
I installed the current version of rspec with rspec_on_rails
I tried to run rake spec but received:
330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec
(in /Users/multimedia/Desktop/restful_auth_rspec)