similar to: Problem processing text file after uploading

Displaying 20 results from an estimated 10000 matches similar to: "Problem processing text file after uploading"

2012 Sep 04
5
Associations and Math between Models
I''ve setup two models, 1 and 2, that are associated by has_and_belongs_to_many. I''m trying to get an attribute from model_1 to use in a method in model_2. When I use the code below, I get an error saying ''undefined method model_1_id''. What am I missing? Thanks! Model_2.rb Class Model_2 < ActiveRecord::Base ... has_and_belongs_to_many :model_1 def
2011 Dec 02
20
Need Some Guides on Solr with Rails.
Hi Everyone, I am pretty new to Rails. I have very little idea about everything. But for my new project i have been asked to do some research on Solr search and implement it on Rails. Please provide me some link on tutorials and guides about Solr on Rails. Trouble is... have to do it by tomorrow. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are
2012 Sep 21
9
Using PostgreSQL with RoR on windows. Help!
So I just got involved in a huge team project with RoR and PostgreSQL. But I can''t find anywhere on the internet to find a proper way to put them together. I did find one but it is for iOS :-/ http://railscasts.com/episodes/342-migrating-to-postgresql?view=asciicast I have them both installed and the gem package for postgres also. the database.yml is already configured. I just
2012 Jun 13
7
Cmd line interface for ruby on rails app
Hi, I have a rails app running which provides an interface to create/update data stored in a DB. How do i develop a cmd line interface to do the same i.e i should be able to retrieve/update data to a DB. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2013 Jan 27
2
Help displaying text
Apologies in advance ...this may be a really dumb question but here goes. @formatted_question[:a] contains text with HTML markup. I want to display it in a field so I can control its vertical and horizontal size on the page. When it is displayed on the page now, rather than interpreting the HTML, it is output into the text field as a string with all HTML tags showing. What am I doing wrong??
2012 Apr 04
4
Running SSL in Development Environment
Hello, I am building an application that consists of two areas; a website and an API. I would like the website to use HTTP and the API to use HTTPS. How can I set this up for my Development Environment? I am using Thin, which I can start using the --SSL flag. However this means any HTTP urls will fail. As far as I can see it is impossible to have a server handle both HTTP and HTTPS, so how do
2010 Mar 24
10
Trouble starting WEBrick server
Hello every body, I just started working on Ruby on Rails and as i am progressing I noticed that I can not start my WEBrick server on the Command prompt. The following are the various error messages that I am going. Microsoft Windows [Version 6.0.6002] C:\Users\imedia2\Desktop\test\helloworld>ruby script/server => Booting WEBrick => Rails 2.3.5 application starting on
2010 Aug 06
4
Paperclip not finding imagemagick on prod, works on dev
Hi, I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError. On my server if I ./script/console I can run imagemagick through system("convert") and it works, so why can''t paperclip find it? Thanks for your ideas PS: the paperclip google group isn''t getting much answers so I am
2012 Jul 21
3
Attributes in classes db/migrate or app/models
Hello, I''ve got some experience in Java, and recently, I''ve begun to practice with Rails. One of the things that has surprised to me, after I''ve read some books, it''s that classes hasn''t got attributes; the attributes are in the files db/migrate/*. After that, the ORM makes the mapping with de Database. But the attributes aren''t in the files
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi, i am using rails 3.0.10 i am trying with sample application for searching data from table and updating my search.html.erb file is <%= form_for (@employee) do |s|% <div id ="search_details"> <%= s.text_field :name%> <%= s.text_field :emp_id, :onfocus => ''sal(document.getElementById(''employee_name'').value);''%>
2011 Aug 09
4
Nesting select and text_field in radio_button
I''m creating my first Rails app and need an idea creating forms. I have Meeting model with place attribute. I want to have two fields for Meeting.place = one would be select with places from other meetings or text_field if the place is being used first time. User would be selecting radio_button of which field he has used. So is there any way to nest select and text_field within 2
2012 Oct 16
8
<form> tag is self-closing before input fields .. (HAML generator used)
The form is inside a table, enclosing a <tr> = form_tag admins_backoffice_dashboards_path, :remote =>"true" do %tr.search %th= link_to t(:clear), "#", :id => :clearFilter %th= select_tag :role, options_from_collection_for_select(Role.global, :id, :name, :selected => @role_id ) %th= text_field_tag :email, nil, :value
2011 Jul 16
9
rake aborted!
hi , I have started to learn ruby on rails and I''m an absolute beginner . when I try to rake a database like "rake db:schema:dump " I get this message : "rake aborted ! unknown database ''cms_development'' " although I have modified my database.yml and have created my database before. I''ll be appreciated if someone can help me with this thanks
2011 Jul 21
5
Freezing one gem in Rails 3
Hi, I''m working on an app for a colleague. He has written his own pagination class, but it is buggy and not very DRY. Therefore I replaced it with the well-known "will_paginate" gem, and that works just great. The only problem is, that although this works on my machine, my colleague (for whatever reason) refuses to install any additional gems on his machine (I guess this is
2012 Jun 30
5
Problems with associations
Hello guys, I have two tables, tasks and projects, and each model I put: Task.rb class Task < ActiveRecord::Base attr_accessible :user_id, :project_id, :name belongs_to :project end Project.rb class Project < ActiveRecord::Base attr_accessible :name, :description has_many :tasks end But when I go to my prompt and I make a SELECT with task, none project is returned.
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
Hey guys, As most of you know, Rails 3.1 introduces query caching for ActiveRecord. Great change all-in-all, but for those of us with IT department mandates for using MySQL (yeah, yeah, I know...), it''s kind of a mixed bag. I need to disable query caching in a project I''m building based on 3.1. I''ve tried a couple different approaches, both without any success. I
2011 Jul 22
9
Active Record Issue (I think)
I''m following a rails tutorial (Hartl) and it''s been fine so far, but something doesn''t seem to be working right. I have two basic models so far, "User" and "Micropost". class User < ActiveRecord::Base has_many :microposts end class Micropost < ActiveRecord::Base belongs_to :user end If I do something like: "first_user =
2012 Jan 01
4
Chronic parsing date range in console but not in application in rails 3
Hey all, Chronic will parse a date range in console: Chronic.parse(1/1/2011 - 1/1/2012, :guess => false) => 2012-01-01 12:00:00 -0500..2012-01-01 12:00:01 -0500 However, when I use logger to check if it''s parsing in application, it is not: logger.info "The value of history date is #{history_date}" => The value of history date is 1/1/2011 - 1/1/2012
2012 Jun 09
7
ActiveRecord::AssociationTypeMismatch in UsersController#update
Hi Im trying to link my User model to a Teams model. I seem to be getting the following errors. Any help would be great as Im just new to RoR Thanks error ActiveRecord::AssociationTypeMismatch in UsersController#update Team(#2183395560) expected, got String(#2174675960) app/controllers/users_controller.rb:67:in `update'' app/controllers/users_controller.rb:66:in `update''
2011 Jul 11
39
Help filling out a registration (I think it's called multi tenant)
Do you know when you are filling out a registration for a new account, and you keep pressing next to fill the rest of the information in separate pages? I''d like to do that, but I have no idea how. Basically I have a company model with its information, and a contacts model, with belongs to my company (also each company has only one contact), and I''d like for the user to fill in