<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014797</guid>
        <pubDate>Thu, 27 Oct 2011 11:49:51 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014797</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014791'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T15:43:13+04:00">27.10.11, 11:43</time></span><div class='quote '>и чего же там было? ну что аж javascript не отрабатывал?</div></div><br>
<br>
там у меня были всякие стили,<br>
а как вставил это<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">/*</div><div class="code_line">&nbsp;* This is a manifest file that&#39;ll automatically include all the stylesheets available in this directory</div><div class="code_line">&nbsp;* and any sub-directories. You&#39;re free to add application-wide styles to this file and they&#39;ll appear at</div><div class="code_line">&nbsp;* the top of the compiled file, but it&#39;s generally better to create a new file per style scope.</div><div class="code_line">&nbsp;*= require_self</div><div class="code_line">&nbsp;*= require_tree . </div><div class="code_line">*/</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
заработало, как объяснить, увы не знаю]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014791</guid>
        <pubDate>Thu, 27 Oct 2011 11:43:13 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014791</link>
        <description><![CDATA[XandoX: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014788'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Cepheus &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T11:38:41+00:00">27.10.11, 11:38</time></span><div class='quote '>у меня был application.css косячный,</div></div><br>
и чего же там было? ну что аж javascript не отрабатывал?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014788</guid>
        <pubDate>Thu, 27 Oct 2011 11:38:41 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014788</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong> все заработало, у меня был application.css косячный, скопировал с нового созданного приложения и все заработало. Пасибо огромное, за помощь, ез Вас всеравно бы не разобрался.]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014787</guid>
        <pubDate>Thu, 27 Oct 2011 11:37:39 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014787</link>
        <description><![CDATA[XandoX: попробуй<br>
вот это <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">$(document).ready(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(&quot;#browser&quot;).treeview({});</div><div class="code_line">});</div></ol></div></div></div></div><br>
заменить на<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">$(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp;alert(1);</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(&quot;#browser&quot;).treeview({});</div><div class="code_line">});</div></ol></div></div></div></div><br>
<br>
если alert вылитит, но treeview не построится, то ищи косяк в treeview, по остальному у тебя все ок, должно работать]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014782</guid>
        <pubDate>Thu, 27 Oct 2011 11:27:25 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014782</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong>ну там текст подключенных js файлов (приводить не стал он большой)]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014779</guid>
        <pubDate>Thu, 27 Oct 2011 11:24:00 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014779</link>
        <description><![CDATA[XandoX: ну и чего там? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-10-27T11:26:20+00:00">27.10.11, 11:26</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014722'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Cepheus &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:48:20+00:00">27.10.11, 10:48</time></span><div class='quote '>Started GET &quot;/assets/jquery.treeview&quot; for 127.0.0.1 at 2011-10-27 16:47:08 +0600<br>
Served asset /jquery.treeview - 304 Not Modified (0ms)</div></div><br>
<br>
вот это странно, по идеи все файлы которые require должны инлайнится в application.js и ни каких запросов на них отдельно не должно идти, от куда это у тебя в логах?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014748</guid>
        <pubDate>Thu, 27 Oct 2011 11:09:15 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014748</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014745'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T11:06:33+00:00">27.10.11, 11:06</time></span><div class='quote '>а если /assets/application.js в браузере открыть?</div></div><br>
да проверял, открывается]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014745</guid>
        <pubDate>Thu, 27 Oct 2011 11:06:33 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014745</link>
        <description><![CDATA[XandoX: а если /assets/application.js в браузере открыть?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014732</guid>
        <pubDate>Thu, 27 Oct 2011 10:57:21 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014732</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014724'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:51:22+00:00">27.10.11, 10:51</time></span><div class='quote '>ну а asset/application видно в логах-то? </div></div><br>
да говорит правда это<br>
<br>
<em class='tag-i'>Started GET &quot;/assets/application.css&quot; for 127.0.0.1 at 2011-10-27 16:53:46 +0600<br>
Served asset /application.css - 304 Not Modified (0ms)<br>
<br>
<br>
Started GET &quot;/assets/application.js&quot; for 127.0.0.1 at 2011-10-27 16:53:46 +0600<br>
Served asset /application.js - 304 Not Modified (0ms)</em><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014724'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:51:22+00:00">27.10.11, 10:51</time></span><div class='quote '>в самом html? <br>
</div></div><br>
интересно исходник html<br>
 &#60;script src=&quot;/assets/application.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br>
хотя в другом каталоге лежит<br>
<br>
в браузере, все видно, только не как дерево=))))))))) <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-10-27T10:59:01+00:00">27.10.11, 10:59</time></span></span><br>
хотя нет, так и должно быть просто assets/*.js <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-10-27T11:00:50+00:00">27.10.11, 11:00</time></span></span><br>
еще раз вот application.js<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">//require jquery.js</div><div class="code_line">//require jquery.treeview.js</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;</div><div class="code_line">$(document).ready(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(&quot;#browser&quot;).treeview({});</div><div class="code_line">});</div></ol></div></div></div></div><br>
<br>
вот вьюха<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;ul id=&quot;browser&quot; class=&quot;filetree treeview-famfamfam&quot;&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Folder 1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Item 1.1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;Item 1.1.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Folder 2&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Subfolder 2.1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;ul id=&quot;folder21&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.1.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.1.2&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Subfolder 2.2&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.2.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.2.2&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;li class=&quot;closed&quot;&#62;&#60;span class=&quot;folder&quot;&#62;Folder 3 (closed at start)&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 3.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 4&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;/ul&#62;</div><div class="code_line">&#60;/li&#62;</div><div class="code_line">&#60;/ul</div></ol></div></div></div></div>]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014724</guid>
        <pubDate>Thu, 27 Oct 2011 10:51:22 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014724</link>
        <description><![CDATA[XandoX: ну а asset/application видно в логах-то? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-10-27T10:51:53+00:00">27.10.11, 10:51</time></span></span><br>
в самом html? <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-10-27T10:52:51+00:00">27.10.11, 10:52</time></span></span><br>
ты как-то избирательно на вопросы отвечаешь :)<br>
я тебя довно уже спросил, что в браузере видно?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014722</guid>
        <pubDate>Thu, 27 Oct 2011 10:48:20 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014722</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong>да нет результат, стили все показывает и все, правда кучу всего пишет<br>
вот кусочек<br>
<br>
<em class='tag-i'>Started GET &quot;/assets/jquery.treeview&quot; for 127.0.0.1 at 2011-10-27 16:47:08 +0600<br>
Served asset /jquery.treeview - 304 Not Modified (0ms)</em>]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014719</guid>
        <pubDate>Thu, 27 Oct 2011 10:44:13 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014719</link>
        <description><![CDATA[XandoX: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014709'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Cepheus &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:32:51+00:00">27.10.11, 10:32</time></span><div class='quote '>XandoX включил, из нового приложения вообще все настройки скопировал</div></div><br>
и?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014709</guid>
        <pubDate>Thu, 27 Oct 2011 10:32:51 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014709</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong> включил, из нового приложения вообще все настройки скопировал]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014706</guid>
        <pubDate>Thu, 27 Oct 2011 10:28:27 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014706</link>
        <description><![CDATA[XandoX: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014704'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Cepheus &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:25:39+00:00">27.10.11, 10:25</time></span><div class='quote '>настройки все со старого rails 3.0.10 приложения, может по этому не работает</div></div><br>
может, в конфиге config/application.rb надо включить asset-ы config.assets.enabled = true<br>
<br>
а в браузере чего видно?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014704</guid>
        <pubDate>Thu, 27 Oct 2011 10:25:39 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014704</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014699'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T10:21:06+00:00">27.10.11, 10:21</time></span><div class='quote '>покажи app/view/layout/application.html.erb<br>
<br>
и в коде странице в браузере посмотри что скрипт прописан и проверь, что он подгружается, а не выдает какую http ошибку, а если выдает посмотри что в логах пишут</div></div><br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;html&#62;</div><div class="code_line">&#60;head&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;title&#62;RailsApplication1&#60;/title&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;%= stylesheet_link_tag &nbsp; &nbsp;&quot;application&quot; %&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;%= javascript_include_tag &quot;application&quot; %&#62;</div><div class="code_line">&nbsp;&nbsp;&#60;%= csrf_meta_tags %&#62;</div><div class="code_line">&#60;/head&#62;</div><div class="code_line">&#60;body&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;%= yield %&#62;</div><div class="code_line">&nbsp;</div><div class="code_line">&#60;/body&#62;</div><div class="code_line">&#60;/html&#62;</div></ol></div></div></div></div><br>
настройки все со старого rails 3.0.10 приложения, может по этому не работает]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014699</guid>
        <pubDate>Thu, 27 Oct 2011 10:21:06 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014699</link>
        <description><![CDATA[XandoX: покажи app/view/layout/application.html.erb<br><br>и в коде странице в браузере посмотри что скрипт прописан и проверь, что он подгружается, а не выдает какую http ошибку, а если выдает посмотри что в логах пишут]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014696</guid>
        <pubDate>Thu, 27 Oct 2011 10:17:38 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014696</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong>ну, да все сделал, css подгрузились, а js нет]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014665</guid>
        <pubDate>Thu, 27 Oct 2011 09:46:20 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014665</link>
        <description><![CDATA[XandoX: мы явно друг друга не понимаем :)<br>
вообщем <br>
application.js должен выглядить как-то так<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">// require jquery</div><div class="code_line">// require jquery.treeview</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(document).ready(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$(&quot;#browser&quot;).treeview({}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;});</div></ol></div></div></div></div><br>
при этом jquery.treeview.js должен лежать рядом с application.js<br>
во вьюхе ничего специально делать не нужно<br>
<br>
если ты app/view/layout/application.html.erb не трогал, то должно все работать.]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014662</guid>
        <pubDate>Thu, 27 Oct 2011 09:37:11 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014662</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014658'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T09:25:20+00:00">27.10.11, 09:25</time></span><div class='quote '>как проверял?<br>
скрипт-то вообще подгружаеться?<br>
может проблема в скрипте и тот молча падет и не чего не делает?<br>
в ообще показывай<br>
application.js<br>
application.html.erb<br>
и вьюху</div></div><br>
ну как проверял, вот,что в application.js<br>
<br>
require jquery.treeview<br>
<br>
а теперь надо как то сделать во вьюхе это<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;ul id=&quot;browser&quot; class=&quot;filetree treeview-famfamfam&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Folder 1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Item 1.1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;Item 1.1.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Folder 2&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Subfolder 2.1&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul id=&quot;folder21&quot;&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.1.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.1.2&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;folder&quot;&#62;Subfolder 2.2&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.2.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 2.2.2&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li class=&quot;closed&quot;&#62;&#60;span class=&quot;folder&quot;&#62;Folder 3 (closed at start)&#60;/span&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 3.1&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;li&#62;&#60;span class=&quot;file&quot;&#62;File 4&#60;/span&#62;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#60;/ul&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&#60;/li&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/ul</div></ol></div></div></div></div><br>
это то и будет само дерево, <br>
если это layouts то, так<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;script&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(document).ready(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$(&quot;#browser&quot;).treeview({}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;});</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/script&#62;</div></ol></div></div></div></div><br>
, а как во вьюхе не пойму=)]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014658</guid>
        <pubDate>Thu, 27 Oct 2011 09:25:20 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014658</link>
        <description><![CDATA[XandoX: как проверял?<br>скрипт-то вообще подгружаеться?<br>может проблема в скрипте и тот молча падет и не чего не делает?<br>в ообще показывай<br>application.js<br>application.html.erb<br>и вьюху]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014604</guid>
        <pubDate>Thu, 27 Oct 2011 08:22:23 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014604</link>
        <description><![CDATA[Cepheus: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=343441&view=findpost&p=3014568'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>XandoX &#064; <time class="tag-quote__quoted-time" datetime="2011-10-27T07:46:39+00:00">27.10.11, 07:46</time></span><div class='quote '> `// require jquery` - видел? вот это оно</div></div><br>
видел т.е. подключаю в нем нужный js файл<br>
require tree #(к примеру)<br>
а не получается, то что нужно во вьюхе вызвать этот метод treeview для определенного куска, вот примерно это]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014568</guid>
        <pubDate>Thu, 27 Oct 2011 07:46:39 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014568</link>
        <description><![CDATA[XandoX: application.js это просто js файл кторые подключаеться во все вьюхи (по умолчанию) в 3.1 рельсах<br>так же там есть механизм подключения других скриптов строчкм `// require jquery` - видел? вот это оно<br><br>и чего у тебя не получаеться? я не понимаю]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014467</guid>
        <pubDate>Thu, 27 Oct 2011 03:33:06 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014467</link>
        <description><![CDATA[Cepheus: не нашел как именно использовать application.js, можете подробнее пример описать?<br>сам пытался добавить <br>&#036;(document).ready(function(){<br>        &#036;(&quot;#browser&quot;).treeview({});<br> <br>    });<br> в application.js, но видимо не то=)]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014081</guid>
        <pubDate>Wed, 26 Oct 2011 08:34:32 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3014081</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong>да, версия 3.1, попробую туда использовать это]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013944</guid>
        <pubDate>Wed, 26 Oct 2011 05:51:05 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013944</link>
        <description><![CDATA[XandoX: для начала: какая версия ror? если 3.1 - то да<br>во вторых: пройди хотя бы туториал http://ruby.railstutorial.org/ruby-on-rails-tutorial-book он правда да 3.0, но обще представления че-как там в этих ваших рельсах устроенно даст.]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013889</guid>
        <pubDate>Wed, 26 Oct 2011 02:22:55 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013889</link>
        <description><![CDATA[Cepheus: <strong class='tag-b'>XandoX</strong> т.е. хотите сказать, вставить код туда?]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013767</guid>
        <pubDate>Tue, 25 Oct 2011 16:39:34 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013767</link>
        <description><![CDATA[XandoX: а чем app/asserts/javascripts/application.js не подошел?]]></description>
        <author>XandoX</author>
        <category>Ruby</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013413</guid>
        <pubDate>Tue, 25 Oct 2011 08:26:02 +0000</pubDate>
        <title>ror использование javascript во вьюхах</title>
        <link>https://forum.sources.ru/index.php?showtopic=343441&amp;view=findpost&amp;p=3013413</link>
        <description><![CDATA[Cepheus: как использовать javascript в представлениях?<br>
пытался, что-то вроде этого, не сработало<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;script&#62;</div><div class="code_line">&nbsp;&nbsp; &nbsp;$(document).ready(function(){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;$(&quot;#browser&quot;).treeview({});</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;});</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp;&#60;/script&#62;</div><div class="code_line">&#60;div id=&quot;browser&quot;&#62;</div><div class="code_line">...............</div><div class="code_line">&#60;/div&#62;</div></ol></div></div></div></div>]]></description>
        <author>Cepheus</author>
        <category>Ruby</category>
      </item>
	
      </channel>
      </rss>
	