|
Posted by Vinothini B on February 17th, 2012
I like HighCharts and used it for one of our project. I wanted to use HighCharts in Rhomobile mobile applications and thought I would give it a whirl.
Posted by Sivakumar V on February 16th, 2012
Here is the quick tip to configure awstats in Typo3. This will enable Top 25 section to show valid URI.
Posted by Vinothini B on February 13th, 2012
While using Rhomobile, often you might want to create an app that would have scrollable content with fixed header and footer, horizontally scrollable content, vertically scrollable content, scrollable content with a specific div and so on. Here is a sample app that got all this integrated together for you. Read more » Tags: android, ios, iPhone, rhodes, rhomobile, Ruby
Posted by Dhepthi L Narasimhan on February 8th, 2012
I tried to integrate ruby on rails app in Facebook. Developing facebook app is quite easy to with rails and Javascript sdk. The documentation for Facebook Javascript sdk is easy to implement in rails app. Read more » Tags: facebook, facebook-sdk, Rails, Ruby
Posted by Surendran Sukumaran on January 20th, 2012
I tried Push notifications concept in Rhodes using Rhoconnect and its works well. The documentation for the same is also nice.
Posted by Sivakumar V on January 4th, 2012
Rhodes team recently released 3.3.1 version which got support for RhoElements (Motorola Windows Mobile sdk with device specific features) and also for Android ET1.
Posted by Balaji D Loganathan on December 26th, 2011
We wanted to consume simple SOAP based web services from the iPhone, Android applications using RhoMobile framework. We dont want to use Savon as it got too much dependency to become rhodes-ruby extension.
Posted by Balaji D Loganathan on November 11th, 2011
brew install mysql Is you have installed mysql server already and have a failed mysql gem, then remove the mysql server first [ see] Do this to install mysql system tables: mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp Install mysql gem: sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/Cellar/mysql --with-mysql-lib=/usr/local/Cellar/mysql/5.5.15/lib/ --with-mysql-include=/usr/local/mysql/5.5.15/include --with-mysql-config=/usr/local/Cellar/mysql/5.5.15/bin/mysql_config To find out what your machine is. use uname -a 1 Comment » Tags: Distributed Agile, gem, Rails, Ruby, Ruby on Rails
Posted by Vamsi Krishna on October 28th, 2011
This is a small blog about applying authorization to an application and how to write unit,functional and integration tests for the application in the end, so the first blog I will cover how to do simple authorization in rails and in the second part of the application I will write the complete test cases for this application. The scenario: Application – Managing Contents Admin – has access to all the actions. There are so many plugins available outside for implementing this Authorization. I decided to do it on my own since this is a simple authorization application, but if you want to go for complex scenarios I suggest you check this link Ok enough talk, let’s digg inside the code. This application is completely about Authorization, I provided a simple authentication but, for providing proper authentication the plugins I suggest are auth_logic or restful_authentication(plugins) or you can write your own authentication code. Anyway let’s go with the code. In this application I created login_controller for authentication, it’s a simple form with one textfield which will expect you to enter the user type(member,publisher or admin). To access any action first of all the user must be a registered user that is member, Admin can access every action of the application and Publisher can do everything except deleting the content. Let me show the code for authentication So I created a scaffold for content application. So once you successfully logged in the the role will be saved in a session. So the code is self explanatory, you can move this to application controller if you want to applay this authorization than to more than one controller. admin?.publisher? are can be used a helpers in the views to hide the links for users that are not supposed to show for example:
<% if publisher? || admin? %>
<td><%= link_to 'Edit', edit_content_path(content) %></td>
<% end %>
<% if admin?
<td><%= link_to 'Destroy', content, :confirm => 'Are you sure?', :method => :delete %></td>
<% end %>
So this is the simple authorization I provide for the system, if your system is complex there are plugins available for authorization you can check this blog post for that
Posted by Surendran Sukumaran on October 12th, 2011
Ok. If you have already read the Devise gem wiki, you wouldn’t be seeing this, if not here is the simple way to do it. |