dashing-rails | The exceptionally handsome dashboard framework for Rails | Dashboard library
kandi X-RAY | dashing-rails Summary
kandi X-RAY | dashing-rails Summary
Dashing is a Rails engine that lets you build beautiful dashboards. Check out a demo over here. Here's another one, optimized for 1080p screens.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize redis
- update the widget
- Checks if the user has been authorized
- List all events
- Authenticate via an application
- This function check for the dashboard
- Returns the path for a dashboard
- Check the dashboard name
- Get a new redis connection
- Create a new connection instance
dashing-rails Key Features
dashing-rails Examples and Code Snippets
Community Discussions
Trending Discussions on dashing-rails
QUESTION
I have this very basic question. I am using this dashboard rails engine, and this gives me a views/layouts/dashing/dashboard.html.erb
. This is the layout of the dashboard view.
But I want to customize this view, like add a navigation bar, that has a link which point to my about_path
. However, none of the routes are recognized in the dashboard view. It results in an error undefined method about_path
.
But the about_path
route is defined in my routes file and is working fine in other views that dont belong to dashboard.
Is there any way a rails engine recognizes routes defined in my application?
...ANSWER
Answered 2017-Sep-05 at 12:11If you wish to reference the application inside the engine in a similar way, use the main_app helper:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dashing-rails
Install the gem by adding the following in your Gemfile:
Install puma server by adding the following in your Gemfile:
Bundle install
Install the dependencies using the following command:
Start redis server:
Open config/environments/development.rb and add:
Start your server (must be a multi threaded server - See Requirements)
Point your browser at http://localhost:3000/dashing/dashboards and have fun!
app/views/dashing/dashboards — One .erb file for each dashboard that contains the layout for the widgets.
app/jobs — Your ruby jobs for fetching data (e.g for calling third party APIs like twitter).
app/assets/javascripts/dashing/widgets/ — A widget's name .coffee file containing your widget's js.
app/assets/stylesheets/dashing/widgets/ — A widget's name .scss file containing your widget's css.
app/views/dashing/widgets/ — A widget's name .html file containing your widget's html.
app/views/layouts/dashing/ — All your custom layouts where your dashboards and widgets will be included.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page