R.java is missing implicate that your resource folder is having some issues. please try to look at your resource files(layout,drawable etc). and after that clean the project. it will solve the problem for sure.

Android- R.java file not found
In app/controllers/ElementTypesController.rb, I have this:

l = params[:element_type_name]
@element_types = ElementType.by_name(l).page(params[:page])


and in the model app/models/ElementType.rb, I have this:

scope :by_name, (lambda do |name| { :conditions =&gt; ['name LIKE ?', "%#{name}%"]} end )


However, this throws an error, complaining that pagination (Kaminari) can't happen on a hash. What is wrong with my scope?
