rails server vs preview method in Ruby On Rails - mad_chatter - ruby-on-rails

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.

Related

pdf.js gem producing errors

I am a rails novice and trying to create my web portfolio in Cloud9. I wanted to display my resume.pdf in the user browser so I installed this gem gem 'pdfjs_rails' now my app doesn't even start in cloud 9. It show the following error messages in the terminal:
Please help me. How can i revert it back? thanks
Doesn't look like anything related to pdfjs (no point in that direction). Are you sure you've selected the right runner in Cloud9? See:
https://community.c9.io/t/error-when-running-ruby-project/11799/4
More in general: if you think an issue would be related to a gem, you can simply remove it from the Gemfile and run gem bundle to 'revert' to a previous state.

Bootsy rails gem not showing any content

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.

Setting up ruby on rails gem ga_events

I am relatively new to web dev and I am trying to set up the ruby on rails gem ga_events (https://github.com/Nix-wie-weg/ga_events). I am doing this because I need to have google analytics event tracking within controllers and this gem seems like a good way to do it. The issue I am having is where the readme says, "After requiring ga_events.js, you have to choose an adapter." I am using Google Universal Analytics and thus I would like to choose that one. It doesn't say specifically how to do this. Where do I put that code block (https://github.com/Nix-wie-weg/ga_events#google-universal-analytics-analyticsjs)? Do I need to make a new file somewhere?
I'm assuming it's obvious for a more experienced developer. More detailed instructions+explanation would be really helpful. Thanks.
I'm using Rails 4.0.13 and Ruby 2.0.0p643.
I was having the same issue here! Turns out, it is just javascript code.
I put mine under application.js since it's a code that need to be on every page.

Visual Log Viewer for Ruby On Rails 4.2

I have worked previously on Laravel 4 and there is an awesome log viewer tool for it laravel log viewer view demo
I'm looking something very similar for Ruby on rails 4.2, if you guys know any good visual logging GEM for Rails 4.2 please let me know..
From code I need to log at different log levels, and this tool should visually organize my logs, thanks..
This should get you started https://github.com/shadabahmed/logstasher
As it says
This gem is heavily inspired from lograge, but it's focused on one
thing and one thing only. That's making your logs awesome like this
More here http://www.shadabahmed.com/blog/2013/04/30/logstasher-for-awesome-rails-logging/
Another simpler gem is https://github.com/dieb/browserlog - it just shows your default rails logs, in the browser, with syntax highlighting.
Also see:
https://github.com/discourse/logster
We use it in production across thousands of Discourse instances.

Jasper Reports in Ruby on Rails

I have assigned to use jasperserver reports in a rails application.
There is a plugin for jasperserver to use in Ruby application.
https://github.com/gunark/jasperserver-client
I want to know whether this plugin can use in my rails 3 version of application.
I've checked in railsplugin.org .But it shows "no result found".
I'l be please if u people gave me any help link.
According to the wiki, the author recommends you install it as a gem & not as a plugin. They go on to give an example of how to use the gem in a rails project on this wiki page.
I haven't used this, but your compatibility issues probably won't be with rails. Maybe the ruby version or soap4r version - but there don't seem to be any rails dependencies here.
You maybe use this simple ruby script for this => http://www.redrails.com.br/2013/03/07/ruby-client-para-rest-api-do-jasper-report-server/

Resources