<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kfeirby &#187; rails</title>
	<atom:link href="https://kfeirby.ru/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>https://kfeirby.ru</link>
	<description>ybriefk</description>
	<lastBuildDate>Sat, 20 Feb 2021 15:53:12 +0000</lastBuildDate>
	<language>ru-RU</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.11</generator>
	<item>
		<title>Gem-ы под разные платформы</title>
		<link>https://kfeirby.ru/gem-y-pod-raznye-platformy/</link>
		<comments>https://kfeirby.ru/gem-y-pod-raznye-platformy/#comments</comments>
		<pubDate>Sat, 23 Nov 2013 12:59:53 +0000</pubDate>
		<dc:creator><![CDATA[kfeirby]]></dc:creator>
				<category><![CDATA[Работа]]></category>
		<category><![CDATA[gemfile]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.kfeirby.ru/?p=86</guid>
		<description><![CDATA[if RUBY_PLATFORM =~ /win32/ # Windows OS   gem 'therubyracer', :platform =&#62; :ruby   gem 'libv8', '3.11.8.0' else # Other OS   gem 'therubyracer', '0.12.0', :platform =&#62; :ruby   gem 'libv8', '3.16.14.0' end]]></description>
				<content:encoded><![CDATA[<pre>if RUBY_PLATFORM =~ /win32/
  # Windows OS
  gem 'therubyracer', :platform =&gt; :ruby
  gem 'libv8', '3.11.8.0'
else
  # Other OS
  gem 'therubyracer', '0.12.0', :platform =&gt; :ruby
  gem 'libv8', '3.16.14.0'
end</pre>
]]></content:encoded>
			<wfw:commentRss>https://kfeirby.ru/gem-y-pod-raznye-platformy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Если в RSpec не рендерится JSON через jBuilder</title>
		<link>https://kfeirby.ru/esli-v-rspec-ne-renderitsya-json-cherez-jbuilder/</link>
		<comments>https://kfeirby.ru/esli-v-rspec-ne-renderitsya-json-cherez-jbuilder/#comments</comments>
		<pubDate>Fri, 22 Nov 2013 06:56:10 +0000</pubDate>
		<dc:creator><![CDATA[kfeirby]]></dc:creator>
				<category><![CDATA[Работа]]></category>
		<category><![CDATA[jbuilder]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rspec]]></category>

		<guid isPermaLink="false">http://www.kfeirby.ru/?p=84</guid>
		<description><![CDATA[Добавить в {spec/spec_helper.rb} RSpec.configure do &#124;config&#124; # https://github.com/rails/jbuilder/issues/32 config.render_views = true end]]></description>
				<content:encoded><![CDATA[<p>Добавить в {spec/spec_helper.rb}</p>
<pre>RSpec.configure do |config|
  # https://github.com/rails/jbuilder/issues/32
  config.render_views = true
end</pre>
]]></content:encoded>
			<wfw:commentRss>https://kfeirby.ru/esli-v-rspec-ne-renderitsya-json-cherez-jbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Подключение twitter bootstrap в Rails 4</title>
		<link>https://kfeirby.ru/podklyuchenie-twitter-bootstrap-v-rails-4/</link>
		<comments>https://kfeirby.ru/podklyuchenie-twitter-bootstrap-v-rails-4/#comments</comments>
		<pubDate>Sun, 08 Sep 2013 16:58:13 +0000</pubDate>
		<dc:creator><![CDATA[kfeirby]]></dc:creator>
				<category><![CDATA[Работа]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[руководство]]></category>

		<guid isPermaLink="false">http://www.kfeirby.ru/?p=65</guid>
		<description><![CDATA[Подключение twitter bootstrap v.2 1. Сначала в Gemfile в блок {group :assets} подключаем {gem &#171;twitter-bootstrap-rails&#187;} group :assets do     gem 'uglifier', '&#62;= 1.3.0'     gem 'sass-rails', '~&#62; 4.0.0'     gem 'coffee-rails', '~&#62; 4.0.0'     gem "twitter-bootstrap-rails" end 2. Далее {bundle install}. Потом {rails generate bootstrap:install static}. Всё. Если у вас при старте приложения Rails пишет [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2>Подключение twitter bootstrap v.2</h2>
<p>1. Сначала в Gemfile в блок {group :assets} подключаем {gem &#171;twitter-bootstrap-rails&#187;}</p>
<pre>group :assets do
    gem 'uglifier', '&gt;= 1.3.0'
    gem 'sass-rails', '~&gt; 4.0.0'
    gem 'coffee-rails', '~&gt; 4.0.0'
    gem "twitter-bootstrap-rails"
end</pre>
<p>2. Далее {bundle install}. Потом {rails generate bootstrap:install static}. Всё.</p>
<p>Если у вас при старте приложения Rails пишет что-то типа FileNotFound twitter-bootstrap-static/bootstrap, то в файл config/application.rb дописываем вниз</p>
<pre>if defined?(Bundler)
  # If you precompile assets before deploying to production, use this line
  Bundler.require(*Rails.groups(:assets =&gt; %w(development test)))
  # If you want your assets lazily compiled in production, use this line
  # Bundler.require(:default, :assets, Rails.env)
end</pre>
<h2>Подключение twitter bootstrap v.3</h2>
<p>Вместо {gem &#171;twitter-bootstrap-rails&#187;} пишем {gem &#171;anjlab-bootstrap-rails&#187;, :require =&gt; &#171;bootstrap-rails&#187;, :github =&gt; &#171;anjlab/bootstrap-rails&#187;}</p>
<p>и в файле bootstrap_and_overrides.css должно быть</p>
<pre>/*
  =require twitter/bootstrap
*/</pre>
]]></content:encoded>
			<wfw:commentRss>https://kfeirby.ru/podklyuchenie-twitter-bootstrap-v-rails-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
