similar to: trying to create asset management app having trouble with edit page

Displaying 20 results from an estimated 200 matches similar to: "trying to create asset management app having trouble with edit page"

2012 Jul 18
3
Undefined method error
I have been working on a project based on Michael Hartl''s book Ruby on Rails Tutorial in order to try to teach myself Ruby on Rails. However, when it tries to render a form designed to allow a user to submit a small message, I get an error saying, "undefined method `model_name'' for NilClass:Class". It says the error is at line 1, which is "<%= form_for
2013 Mar 16
3
Do you ALWAYS use "bundle exec rspec spec" tests?
I''m going through Michael Hartl''s Rails tutorial, and I am happy to report that (as of the end of section 7) I''m able to get things working. (That said, I skipped the section on automated testing, as Hartl warned that automated testing is the most likely part of his book to become outdated.) There is a heavy emphasis on the "bundle exec rspec spec" tests.
2005 Dec 29
0
asset host and link_to
i've defined an asset host for my Rails app and all files uploaded through it are accessed via the asset host. How should i access the config object in order to generate correct urls for these files using link_to? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2011 Jul 22
0
Asset Pipeline and Sprockets
Ok I would love to work out how to use the new Raisl 3.1 Asset Pipeline with SCSS variables, mixins etc and being able to use the asset_path tag. What I have so far is this. Im my application.css.scss I have the following. *= require_self *= require layout *= require home This works fine with using the asset_path helper and variable within layout ie, // layout.css.scss.erb
2013 Apr 22
0
Using rack-offline with the asset pipeline (images not cached)
Hi, I''ve been trying to incorporate https://github.com/wycats/rack-offline into my app. I followed the example in the readme that shows how to cache application.css and application.js files and that works. When I go to my browser in production mode, though, and turn off my network connection, then reload the app, the app is reloaded successfully, except for the images. I think I
2011 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey, in my `application.html.erb`, I have this line: <%= stylesheet_link_tag ''application'' %> which should compile through the asset pipeline and link to the application.css (which does a `require_tree .`). In development mode, I''d expect a <link ... href="/assets/application.css" /> This file is actually delivered by, for example, the
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I''ve run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26 14:48:35 +0900 Served asset /books.css
2011 Sep 12
0
How to get the image_path in production without the asset host?
Hi guys, I would like to know how to get the image_path in production environment without the asset host (using rails 3.1). There is the image_path helper that returns the image path with md5 and (if set, and it is set) the asset host, but we have not found a way to get the path without the host. Does anyone know how to do that? Bruno Grasselli Blog: http://brunograsselli.com.br Twitter:
2011 Sep 23
1
Rails 3.1.0 how to pass the full url of an image asset ?
I need to reference the full url of an image stored in the assets, this url is passed to fancy box to open it I build the image path in helper and it get the path "ceramics/big/c0d0.jpg" "ceramics/big/c0d2.jpg", ... but I need to get the full url to these image asset_path("ceramiques/big/c0d0.jpg") => "/assets/ceramiques/big/ c0d0.jpg" but there
2011 Nov 26
0
Asset Pipeline negated css auto width margins
If I use the asset pipeline my auto width margins don''t work. The content box is shoved far left. If I disable asset pipeline it works as expected. Any ideas? Thanks, Steve -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Dec 16
0
Specifying asset hosts via a proc (ActionController::Base.asset_host)
Hi all, I just submitted a patch that would allow you to pass a proc to ActionController::Base.asset_host rather than just using a %d wildcard (e.g. assets%d.example.com). Basically this frees you from the hard-coded assumption that you have 4 hosts numbered 0-3 and also allows you to do smarter things depending on the asset (e.g. images from a particular domain, stylesheets from another). The
2007 May 24
0
asset tag helpers
Is it possible to add another asset tag helper (ActionView::Helpers::AssetTagHelper ) ?? coz i''m using the ActionController::Base.asset_host = "http:// assets.example.com" for my static files.. and I want my app to get video files from that host too.. but the thing is only images, javascripts and stylesheets have the asset tag helpers with them.. what if i wanted videos? any
2002 Oct 28
0
FW: Asset Navigator and wine
I'm extremely new to wine and I'd like to completely move off of windows at work but I'm running into problems getting the a program (Asset Navigator) to work with wine. I launch it and I get a list of errors then straight to the debugger. Here is a list from the terminal window . (Is there a way to get the debug output in file format?) fixme:commctrl:FlatSB_SetSCrollProb stub (this
2012 Mar 15
0
Make Asset Pipeline compatible with Chrome DevTools Autosave
https://github.com/NV/chrome-devtools-autosave doesn’t play nice with Asset Pipeline. https://github.com/NV/chrome-devtools-autosave/issues/27 The culprit of the problem is in the asset’s URLs. I cannot decipher a file path by its URL. For instance, /assets/main.css?body=1 could be either app/assets/stylesheets/main.css, lib/assets/stylesheets/main.css or vendor/stylesheets/main.css. To fix
2012 Jul 27
0
How to get asset pipeline host url in Grape Api
Hi All how can i get the asset pipeline host url in grape api to append to the image url in config/environments/development.rb ActionController::Base.asset_host = "assets.example.com" i have configured the asset url. How can i generate this image with asset host url in grape api -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Jun 11
0
ETH Internship - Dynamic Portfolio Asset Allocation
Summer Internship at ETH Zurich "Dynamic Portfolio Asset Allocation" We offer a 3-months internship starting midth July 2008. The topic addresses "Dynamic Portfolio Asset Allocation" including alternative instruments and hedge funds. The goal will be to compare the robust mean-variance, the lower partial moment and the conditional value-at-risk approaches for portfolio
2008 Dec 05
0
Rails asset tag helpers outputting invalid xhtml
I am using Rails 2.1 and HAML for some, but not all, of my templates. All of the self-closing asset tags (<link>, <img>) output by the rails asset tag helper methods are not being closed at all, thus rendering my pages as invalid XHTML. Has anyone else dealt with a similar problem? I am completely out of ideas, so if you have any suggestions, by all means, fire away. Thanks. -- Posted
2013 May 08
1
Rails asset precompilation doesn't remove comments. How to enable?
I want to to test precompilation on development mode. I set: config.assets.digest = true config.assets.debug = false Then I run: rake assets:precompile:all RAILS_ENV=development All works, assets are precompiled but comments are not removed. What options should I provide to make it to remove comments from assets on precompile? -- Posted via http://www.ruby-forum.com/. -- You received this
2011 Jul 19
0
asset host
I am setting up an asset host on another server http://golf.myassets.com how should I organize the folders in this host ? should I copy the public folder of my Rails app ? or only the images ? or image s+ javascript + stylesheets ? I did not find any information in the doc about it ? thanks for your lights -- You received this message because you are subscribed to the Google Groups
2008 Feb 05
0
Asset IDs not changing in development environment?
Perhaps I''m completely missing something, but... It seems like ActionView::Helpers::AssetTagHelper#compute_public_path keeps a cache of all public paths along with the appended asset id. However, this means that applications (in this case, Facebook) that cache based on the name of the file will never pull the new file if it''s been modified. Would it make sense to either: (a)