I'm working on university project and it has many domains like Course,department,Faculty etc.I want to make a time-table for a student on semester basis. So Is there any plugin available likewise we have for calender?
You might (or might not) benefit from using FullCalendar (a JavaScript-based solution similar to Google Calendar). There is a plugin available for it here:
http://grails.org/plugin/full-calendar
There is also some blog posts about integrating FullCalendar in Grails here:
http://www.craigburke.com/blog/2012/02/09/creating-google-calendar-in-grails-part-1-the-model/
Related
I am setting up spree ecommerce and would like to use it for parents to pay for classes for their children. How do I add a teacher level to associate to their students? Is there a plugin to have a set up like Udemy so that clients can ask questions of their teachers?
The short answer is no. Spree calls plugins extensions, and the full list of actively maintained extensions can be found here https://spreecommerce.com/extensions
I took a look through and didn't see anything that looked like it would do what you need it to. My experience has taught me that it's usually better to build my own extension anyways so I can tweak it as needed. Here's a link to a tutorial that shows the basics for building your own extension https://guides.spreecommerce.com/developer/extensions_tutorial.html
In an attempt to avoid writing my own aggregator for an existent Ruby on Rails app and WordPress blog, I'd like to be able to aggregate various chatter going on in various mediums at one central page based on particular keywords, etc.
This aggregator can live either on the blog or within the Rails app, it doesn't matter.
For example, let's say I want to continually poll Google News, Twitter, public Facebook, and perhaps others, for "chocolate chip cookies." Is there a package that already facilitates this or am I in a "roll it yourself" situation?
One thing to consider is using HTTParty to deal with the APIs those services expose...
My goal is to create a way for an admin to create two models in the
Refinery admin: Campaigns and Videos
I would like to have it setup so that a Campaign has many Videos and
that each Video belongs to a Campaign. Both Videos and Campaigns will have a title, description, and a preview image. I'm not certain of the best way to go about this. Is it possible to setup two plugins and form a relationship between the two? Or, should I create one plugin with both models. If someone could point me in the right direction or a good example of a solution to a similar problem, I would be grateful.
Thank you for looking!
A good example of what you're trying to do is the default pages plugin. That plugin contains two models: Page and PagePart. You could use that as a way to go.
However, if you think you would ever use one of the models but not the other in a different application, I would suggest building them as separate plugins, and then creating the association inside the rails app by overriding plugin functions. You can access any model that is registered with Rails from inside the other plugins.
Best of luck. Feel free to respond with other questions. We've just started using Refinery ourselves, and have been building plugins like mad.
I've been looking in some of the latest Grails books and many open source projects for samples and best practices for adding search/filter functionality to scaffolded list.gsp:s, eg making it work with pagination and sorting etc. This may be a simple task, but being a Grails newcomer it would be of great benefit in having some thorough samples to look at.
The closest thing I've found is the FilterPane plugin, but that is a very general solution - so the code may be unnecessarily complex to retrofit to a more custom search/filter. Does anyone have or has anyone seen good sample code for this? I'm thinking it's a very common requirement so it must be out there...
Check out http://jira.codehaus.org/browse/GRAILS-5225, it's a set of alternate scaffolding templates. They support filtering and searching (if you add searching plugin). The scaffolding templates take a bit to get working, but they will show you how to do things.
Another plugin to check out is the Criteria Plugin.
There is also UberScaffoling Plugin, which allows you to inject code into scaffolded templates, of which I am the author, but I haven't posted updated in a while and I think what's on there may have a bunch of bugs right now. Let me know if you are interested in it - I could email you the latest version (need to find the time to post on grails plugin repo).
Check this blog post - https://blog.uni-koeln.de/rrzk-knowhow/2012/03/14/add-filter-pane-to-your-customized-scaffolded-templates-for-list-pages/
Only downside is need some styling re-work for the filterpane to look neat.
filterpane:2.0.1.1
Grails 2.0.4
I've recently started working with RoR for some projects and I quite like the framework - however coming from an ASP.NET background I'm quite fond of the idea of being able to purchase & drop in reusable components/control such as those from telerik, without having to 'reinvent'.
I suppose it would be possible to maybe create my own using partials or plugins or similar, but I'm wondering if there is anything out there already, or perhaps alternatives which could be massaged into place, like javascript widgets etc?
I don't know of any commercial components or "controls", but there's thousands (probably, I haven't counted them) of plugins out there freely available, to do a great many things for you, some of which would probably count as "controls". Unfortunately, there's no one place to go and find them, and the quality is depressingly variable, but there are a number of plugin indexes like http://agilewebdevelopment.com/plugins/ that might help in finding what you want while weeding out the dross.
Ext JS is a great GUI toolkit. I can't say that it entirely fits in with the RoR way of doing things, but if you write your controllers to return JSON it isn't too bad.
One of the big differences between Ruby/Rails and the .Net world is the fact that most of the available plugins are open-source and integrate at the code level. There is an incredible array of plugins for Rails, and it is very straight forward to write your own. Due to the nature of Ruby you can hook into any just about any part of the language and framework, giving you impressive extensibility.
I am not sure how Web Controls work, but it sounds like they are a "black-box" that provides an end-to-end solution for both UI and data-level operations ... ?
Many of the Rails plugins do provide both UI and data aspects. An example would be "restful_authentication" which provides you with both some basic forms for login and user registration as well as an authentication module and a Active-Record model. Again, this operates at a code-level, so will actually push the relevant code into your codebase when you install and "generate" the authentication modules.
As for "widgets", there is no equivalent in Rails, per-se, but there are a number of JavaScript libraries that provide similar functionality. I use and recommend jQuery UI, myself.
Dojo has a widget library which might meet your needs.