Displaying 20 results from an estimated 6000 matches similar to: "Strange errors in generated html"
2007 Jan 19
4
Problem with link tags
Hell all,
I have a layout were I add my stylesheets and javascript in the
following manner:
<%= stylesheet_link_tag "/form" %>
<%= stylesheet_link_tag "/text" %>
<%= javascript_include_tag :defaults %>
But what happens is that in the actual web page the source is the
following:
<link href="/form.css?1168168516" media="screen"
2008 Apr 04
4
Auto Complete Problems
Hello All,
I''m a RoR newbiew, trying to experiment with Autocomplete, but I''m
having some difficulties. When I start typing in my input box, instead
of getting a nice drop down, the styling on my page is getting all out
of wack (ie my background colours change, link styling changes, etc) and
I''m not seeing any autcompletion data. Here are the steps I''ve taken
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system.
I see that when I use <%= javascript_include_tag "defaults" %>
that when used, the webrick reports
GET /javascripts/prototype.js
GET /javascripts/dragdrop.js
GET /javascripts/effects.js
GET /javascripts/controls.js
but on the system that I am trying to develop on and doing similarly,
the webrick only reports
2007 Oct 27
1
Edge Javascript caching just not working
For some reason, in production, with this one line of code:
javascript_include_tag :all, :cache => true
I get this:
<script cached="true" src="/javascripts/prototype.js?1193454472"
type="text/javascript"></script>
<script cached="true" src="/javascripts/effects.js?1193454472"
type="text/javascript"></script>
2006 Jan 03
1
RequireResourceHelper for JS and CSS
The following was posted on my blog at http://blog.inquirylabs.com.
A friend of mine recently expressed interest in this code snippet, so
I thought I''d send it out to anyone else who''s interested. This
module makes it a lot easier to ''require'' javascript and cascading
stylesheet dependencies inside your views or controllers. By
2006 Mar 18
3
Weird stylesheet_link_tag issue after moving servers
Dear experts,
I am in the process of switching servers for my application.
Before the move everything was working properly.
After the move
<%= stylesheet_link_tag ''/stylesheets/styles.css'' %>
generates
<link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" />
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as
simple as posible. And I''m trying to put some custom css and js to my
own index.html.erb (not public/index.html.erb), I inluded this on the
layout file:
layout file:
<!DOCTYPE html>
<html>
<head>
<title>Volei</title>
<%= stylesheet_link_tag "application", :media =>
2011 Sep 01
7
couldn't find file 'jquery' rails 3.1 stable mountable engine
When I create a new engine in Rails 3.1 stable and then access the dummy
app or the engine I get an error say that the app can''t find jquery.
I''ve created the engine using
rails plugin new coffee --mountable
I''ve also created a basic controller in the engine and the dummy app. If
I remove the javascript include tag, everything works. But with the tag
there it just
2006 Apr 10
6
image_tag adding request parameter
I have noticed that the image_tag helper method now appends a request
parameter to the generated src attribute. With Rails
1.0/actionpack-1.11.2 I had
<img src="/images/rss.gif" />
Now (1.1/1.12.1) I get
<img alt="Rss" border="0" src="/images/rss.gif?1142366545" />
Is there any use for that number? Where does it come from?
This is very far
2011 Nov 25
4
Sprockets File not Found Exception.
Hi Everyone,
I was trying out some sample applications for Rails. I created some
controllers and pages. But when i try to access one of them i get an
exception on the webpage:
---------------------------------------------------------------------
Sprockets::FileNotFound in Pages#home
Showing c:/railscode/test_app/app/views/layouts/application.html.erb
where line #6 raised:
couldn''t
2006 Mar 29
4
Why doesn''t Rails 1.1 have all the Script.aculo.us 1.6 files?
Why aren''t builder.js, slider.js, and scriptaculous.js part of the
Rails 1.1 javascripts?
rab:javascripts $ pwd
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.0/html/javascripts
rab:javascripts $ ls -l
total 288
-rw-r--r-- 1 root wheel 148 Mar 28 08:56 application.js
-rw-r--r-- 1 root wheel 28036 Mar 28 08:56 controls.js
-rw-r--r-- 1 root wheel 23613 Mar 28 08:56 dragdrop.js
2009 Dec 20
3
Noob Install Failed 0.0.0.0:3000
Happy Holidays,
I am new to RoR and have just run through the install, which well
seemed to be vaquely documented as some ''Do this'' type of thing on
the http://rubyonrails.org/download page.
download gem
setup.rb
gem install rails
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
and then ( drumroll ) ....
Follow the instructions on
2007 May 14
8
Problem with script.aculos.us script
I''m newbie to rails application.
I like to use script.aculos.us script in my app.
I faced the following problem.
1. first i creat my application.
2. Then I copied the files
scriptaculous.js, builder.js, effects.js, dragdrop.js, controls.js and
slider.js
and prototype.js
into my app/public/javascripts/
3. Then included the <%= javascript_include_tag :defaults %> code into
head
2006 Apr 12
4
CSS and Javascript with partials and layouts
Hi,
I''m developing an application that uses a layout called main on every
page. Most of the individual pages are represented with a single partial
template, but there are several pages that are composed of multiple
partials.
My main layout looks something like this:
Code:
<html>
<head>
<title><%= @title %></title>
<%= stylesheet_link_tag
2006 Apr 16
11
RJS templates not found
I am running Rails 1.10 and wanted to check out the RJS templates.
Rails doesn''t seem to find them.
I did issue the rake comment update_javascripts and that did not correct
the problem. RJS is part of 1.1 right?
Any ideas?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2009 Nov 29
3
Views/index to views/show loses javascript functionality
I am testing a local copy of my website using Mongrel trying to
introduce a scriptaculous multi-level drop down menu. the menu is a
partial that is loaded into every layout I have many pages with their
individual layout file. When I jump from page to page(index to index)
all works OK. When I
jump from any "view/index" to "view/show" I lose the javascript and
the
drop down menu
2009 Feb 24
7
Add .html extension by default
Hi all,
i would like to add the .html extension by default to all my
resources. What is the best way to do that? The reason for this is
that i need to download the generated sites via wget and i need
the .html extension for the downloaded files. Also it would be nice if
the link_to would automatically generate the links with .html...
Thanks,
Gerold
2010 Jan 15
21
Dynamic Assets - can it be done?
I''m looking for 3 areas to work as dynamic assets:
image_path, javascript_path, and stylesheet_path
When I say dynamic, I mean that they will be dynamic through
controller/models. I have been working through approx. 12 hours of
searches to satisfy my answer to this question but am not finding much
luck.
The closest things I''ve found enabling this are use of config for assets
2006 Aug 30
3
Webrick Server don't start after Update Rails
Hi,
After a Rails update (rails-1.1.6) , Webrick server don''t start.
Error:
Cannot find gem for Rails =1.1.4:
Install the missing gem with ''gem install -v=1.1.4 rails'', or
change environment.rb to define RAILS_GEM_VERSION with your desired
version.
Looks normal because of the update.
A new project has no problems if I start the Webrick server.
My
2006 Mar 17
4
using ajax and layouts
Hi.
I copied the layout-example from agile web dev. in rails. When I want
to use ajax to create a search field including
<head><%= javascript_include_tag "prototype" %></head>
does''nt work when I include the line in my
app/views/layout/demo.rhtml. Name of controller is demo_controller.rb.
The search-field is in app/views/demo/observer.rthml and I have to