Bootsy rails gem not showing any content - ruby-on-rails

I'm trying to make the bootsy gem work with Rails 4.
Followed the requirements without installing imageMagick. I just need the editor to show but nothing is working yet.
I also got this inspecting my browser since the bootsy tags work on the form but don't show anything.
Uncaught TypeError: Cannot read property 'locale' of undefined
Can anyone help? Thanks!

The gem's documentation clearly states in requirements:
https://github.com/volmer/bootsy
ImageMagick or GraphicsMagick (for MiniMagick)
Rails 4
Bootstrap 3 fully installed in your app.
Make sure you've installed these correctly. Other than that, without seeing any of your code, we can only guess at solutions. Please post code if you can.

Related

Issue adding Bootstrap on Ruby on Rails Project

This is what I followed in order to get started with bootstrap on Ruby on Rails.
I followed every step exactly the same. However, I keep running into the same error for some reason. When I do not do any thing (i.e. do not use bootstrap) everything works (but the application looks trashy).
Whenever I use bootstrap, I get:
invalid regexp character
This is the application trace:
(execjs):24299
app/views/layouts/application.html.erb:8:in `_app_views_layouts_application_html_erb__337612969_59863020'
I have no clue what is happening.
P.S. I am a beginner. So if the solution is simple then, yeah...
remove #gem 'duktape' from gem file..the issue will be solved

rails server vs preview method in Ruby On Rails - mad_chatter

Hi Everyone I was integrating mad_chatter in my rails application .
Where i saw preview method for starting application as mad_chatter preview
.
I googled it but could not find this method . Can any one tell what
is this preview method.Any reference to documentation will be
appreciated
what is difference between rails server and
preview
Note: I can not tell anything more about it as I didn't found it else where except the mentioned link
preview is part of the mad_chatter gem.
To view the contents of a gem locally, user gem open mad_chatter, or, more simply, just take a look at the github page for the gem.

Rails 4.2 + Ember => unexpected identifier

I'm following Vic Ramon's tutorial. I tried to use the latest version of Rails and Ember-source and I get the following error when visiting home page:
After clicking on link next to error I get this:
How can I fix that?
I ran the following commands:
rails g ember:bootstrap -n App --javascript-engine coffee
rails g ember:install
I removed turbolinks. I also created home controller and an empty view for home#index. Root is set to home#index. Also created following view file:
// app/assets/javascripts/templates/application.js.emblem
h1 Hello World
outlet
Ember gems im using:
Using emblem-source 0.3.18
Using ember-data-source 1.0.0.beta.14.1
Using ember-rails 0.16.1
Using emblem-rails 0.2.2
This could be due to some version incompatibilities between your versions of ember-related gems, as there were quite substantial changes in recent versions of ember (e.g. introduction of HTMLBars, etc.)
Your best bet is to clone the original repo and then try to upgrade individual gems and check if it still works after each upgrade. This way you will be able to identify the troubling gem.
I have verified that the original repo code indeed works with the versions of gems in its current Gemfile.lock.
If you are starting a new Rails + Ember app, ember-cli-rails is probably the way to go, giving you the best of both worlds.
Emblem was the culprit. Replacing .emblem with .handlebars fixed the problem. I tried the tip from emblem-rails git page and icluded
gem "emblem-source", github: "machty/emblem.js"
but that didn't change anything.
I also followed this tutorial (alongside a few others) and I encountered several issues alongside the way ranging from handling templates to setting up the JSON API. I don't see your entire source code so I cannot pinpoint the exact problem. However, it seems that we have similar projects, so you can compare your code to my blog project source code and see what is causing these issues. Comparing to Ramon's tutorial, my blog has implemented everything until chapter 15.
https://github.com/Deovandski/Fakktion/tree/Ember-Rails
If you are a beginner like myself, then I recommend avoiding CoffeeScript and Emblem and sticking to Javascript as much as possible for the first months because you will find more resources and examples. Also, let me know if you need assistance in setting up the project as I used .gitignore to hide things like secrets.yml

Rails_Layout "Could Not Find Layout Generator"

I'm trying to use this command in Terminal: rails generate layout simple --force and when I do I get this error: Could not find generator layout. So I attempted to try to be more specific in my gemfile, and added the specific, newest version number to the file (gem 'rails_layout', ~> '1.0.5'), and still get the same error. I did a little searching and found this similar question: zurb_foundation layout generation in rails and the answer seems to say that Foundation now includes the layout generator in it's own gem? Or am I reading that wrong? Anyway, I did a gem uninstall rails_layout and then tried the original command again. Still, no go. Same, original error of not being able to find the layout generator. I'm on Rails 4.0.2 and Ruby 2.0.0 Does anyone have any suggestions? Thank you!
You're reading the book Learn Ruby on Rails. But you're reading an out-of-date version of the book. The latest version of the book is v1.19. You'll see the correct syntax for use of the rails_layout gem is:
$ rails generate layout:install simple --force
If you check the README for the rails_layout gem you'll see the correct commands:
https://github.com/RailsApps/rails_layout
The rails_layout gem gives you an easy way to set up application layout, flash messages, and navigation partials. If you don't use the generator command, you can copy the example code from the book to get what you need (the generator command gives you a shortcut). Later in the book, you'll learn how to install Foundation and set up the application layout, flash messages, and navigation partials for Foundation. You could follow the instructions on the Foundation website but again, the rails_layout gem gives you a shortcut.
In summary: Make sure you have the newest version of the book.

Rails 2.3.8 tiny mce issue - undefined method `uses_tiny_mce'

I am facing an issue in my application with tiny mce.
All the gem version & ruby version is OK on my system, but it is giving me error
= undefined method `uses_tiny_mce'
Here i installed the tiny_mce gem. COnfigured it correctely, but still there is an issue.
Please help.
Did you include
config.gem 'tiny_mce'
in config/environment.rb?
I have used this gem in the past too, but have stopped using it. I figured it complicated the setup and deployment of my Rails apps. Since then I have just used the TinyMCE editor by itself. Since it is 100% javascript, it does not touch any Ruby code which keeps things better organized.
I was not using this as a plugin.
I have followed the steps given in the,
http://enginey.googlecode.com/svn/trunk/vendor/plugins/tiny_mce/README.rdoc
Steps :
script/plugin install git://github.com/kete/tiny_mce.git
rake tiny_mce:install
my issue got resolved.

Resources