1
vote
2answers
22 views

Events with multiple dates do I use has_and_belongs_to_many

Users can create multiple day events. So an event can have multiple dates, including a start time and end time for the date. So an event might have these dates: July 1 2013 9:00am - 5:00pm July 2 ...
0
votes
1answer
22 views

respond_with and how to set redirect location?

I have the following that update user profile. It does perfectly fine with base url (http://domain_name.com/users/). def update @user = User.find(params[:id]) respond_with @user do |format| ...
0
votes
1answer
29 views

Two consecutive issues: carrierwave and polymorphic show nothing and Can't mass-assign protected attributes: attachment

I am trying to set up a polymorphic association for file uploads. Now pending on the code below, two issues take a very long time. I have searched a lot, but still can't find a resolution #post.rb ...
0
votes
0answers
12 views

Facebook sharing returns internal server error

I am using client side facebook sharing feature, were I used the javescript to share the content to facebook, it was worked previousy well but now I am getting the Internal server error from facebook, ...
-1
votes
1answer
35 views

!! Unexpected error while processing request: failed to allocate memory

Please help me in solving this error. I am getting this error while loading records from text files in to database using ruby scripts. It just works fine if I use small number of records to load ...
0
votes
2answers
36 views

what do we call it if write the same method twice in ruby

I was just trying to explore oops concept in ruby inheritance using mixins overloading(not exactly) as var arg passing i just wanted to what do we call this in OOPS terms class Box def ...
0
votes
1answer
21 views

gem install mysql not working. But i'm able to connect to mysql -u root -p

I'm using ubuntu based backtrack OS. I have mysql installed and i'm able to stop, start, connect to mysql. mysql -u root -p works fine and able to create database and could be able to see data in ...
0
votes
0answers
44 views

Why do I get “Error: Errno::ENOENT: No such file or directory”, but the file exists?

I am using Carrierwave to upload a file. I am trying to read from the file in Rails and any method I use to try to open it returns an error. It returns false if I use: File.exists(file_url) If I ...
0
votes
0answers
12 views

Rails 3 application capable of generating an offline version of itself for download as zip archive

I'm kinda newbie in RoR yet and I'm having a hard time trying to figure out how should I implement this. I'm writing an application to store and display information about insects and their ...
0
votes
1answer
26 views

write html syntaxe in form_for

There is something I don't understand I don't understand why I have height:42px and not height:395px? When I show the code with firebug I see that <form id="new_user" class="wizard" ...
1
vote
2answers
56 views

In Rails, does Eagerloading apply to the where condition on the query ? how do improve performance of the app, apart from using page caching?

I have three questions: 1) file_or_folder and dataset each have many metainstances. Given the following query: p= Metainstance.find(:first, :conditions=>["file_or_folder_id=? AND dataset_id=?", ...
0
votes
1answer
21 views

Ruby on Rails : Prawn: Positioning table is not working, getting undefined method 'position='

I am trying to position a table on right side but getting undefined method 'position=' Here is my sample code: table data , position: :right do rows(0).font_style = :bold cells.style :align ...
0
votes
1answer
24 views

No method Error Undefined method for stringify_keys for array for my time-sheet controller

Here, a user submits a timesheet for some time period by selecting start-date and end-date. Those params are assigned to timesheet_params then it is passed to the timesheet model. I am getting ...
0
votes
1answer
23 views

ActiveSupport::HashWithIndifferentAccess

My contorller is like this class FriendController < ApplicationController def friend_list @user = User.new end def be_mine_friend @user = params[:user] if @user.save? ...
2
votes
2answers
64 views

Passing data from view to controller in rails

I have one question, in my rails app I have a controller who stock the information deals with a form and in this controller I write the title and the project_id because this form create a redmine ...

1 2 3 4 5 90
15 30 50 per page