What ruby based forum software would you recommend for integration into an existing rails application and allows single sign-on? I have seen many suggestions in posts for forum software that is no longer maintained (2008 and earlier).
...
Nothing I have tried seems to have any impact at all on this error. The code is working on both a Mac Pro dev maching as well as our Ubunto 9.10 server. Dev work is using Mongrel not Passenger.
I am fully and completely stumped. Willing to try anything.
I followed this: http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-he...
I have an application that uses Paperclip to upload and transform both image graphics (pngs, gifs, jpgs) and video files (flv, mov, et al) in the same ActiveRecord class.
Because I am working with files that need to be processed with ffmpeg, I have written a custom processor to deal with the videos. In the model where Paperclip is imple...
My mysql installation is new and it was working a yesterday. Now, any MySQL related task in my ruby-on-rails app is failing with the error
Mysql::Error: Unknown table engine 'InnoDB': SELECT version FROM schema_migrations
I searched on the net for InnoDB and it seems to be a plugin. Some sources asked me to reinstall mysql with InnoDB...
A certain action must load an html page according a uri parameter. It works fine for all valid uris, except those of the current server. Is there an easy way to request a page from within a controller?
require 'uri'
class MainController < ApplicationController
def foo
uri = URI(params[:uri])
if uri.host =~ /localhost|mydomain\...
c://windows/system32/sqlite3.dll was loaded.but the DLLRegisterServer entry point was not found ,i installed rails on ruby now i have to start using its sqlite database from where should i start i already insatlled sqlite gem, now i don't no what to do next??
...
Hi,
I am currently trying to set up a development environment for learning Ruby. The environment will primarily be for getting to grips with the language, but I will most probably move on to development with Rails after long. With web development a target, I would like to hear about preferred web servers and databases.
I plan on settin...
There seem to be a number of ways to handle a multiple foreign key association. Each way I have approached this has their draw backs, and as I am new to Rails I am convinced others have come across a similar scenario and I am probably working on something solved long ago.
My question is:
What would be an efficient way of handling a mu...
I'm a beginner of Ruby and Rails, so this is probably an easy question.
How should I set up a simple page that does not need to have any own database tables? In my case, for example, I have a site storing songs and artists. How I want just a simple HELP page with no intelligence, just static html. I also need a BROWSE page, where the us...
Hi
I am using remote_form_for to submit image_tag, but I couldnt pass the image_path
I have used the code like
<% remote_form_for(:image_path, update => "image_area",
:url => {:action=>"show_image"}) do|f| %>
<%= image_tag @image.image.url(:large), :id => "show_image"%>
<%= submit_tag 'Add image'%>
When I use <%= f.image_tag(i...
When I type URL then I get error in error log
[Fri Aug 06 06:49:04 2010] [error] [client 117.198.84.55] File does not exist: /home/sevenz77/public_html/logins
[Fri Aug 06 06:49:02 2010] [error] [client 117.198.84.55] File does not exist: /home/sevenz77/public_html/logins
Is their any redirection problem?
My logins file is present in se...
My ActionMailer scripts look perfectly fine. However when I try to send from the console I get the error.I'm on Ubuntu 10.04. Any ideas would be helpful.
command not found: /usr/sbin/sendmail -i -t
...
Here is the deal.
Our application is working and is being used by writers to send in content for the web site.
Problem is, from times to times, our writers get an error after submiting the form for any rescource in the site. The error after checking the production logs was the good old InvalidAuthenticityToken.
Problem is, they don't c...
Is there any gem that enables you to use something like the Criteria API from the Java persistence framework Hibernate?
I think Hibernate Criteria API is one of the bests APIs ever for queries and I really miss it when developing in Ruby on Rails. I really don't like the way Raills work with ActiveRecord for queries.
...
Trying to get my rails 3 environment up and running and I keep encountering an error I can't get around. Any help would be great appreciated!
Here is the problem:
Patrick-Scotts-MacBook-Pro:~ PJS$ cd hope_app
Patrick-Scotts-MacBook-Pro:hope_app PJS$ rails server
/Users/PJS/.rvm/gems/ruby-1.9.2-rc2/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sq...
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have a Rails application and I am getting this error. I have no idea how to find mysql connect it to mysql.sock. I am pretty sure i can go into config/database.yml and set the mysql.sock but where is it or do I need to reinstall it?
When I do locate mys...
I must admit, I am not even sure if I put the question right...
In my app I have a bunch of named scopes to build more efficient finds.
The one that I can't get to work is this:
=> I want to find all products in the current category and its descendants. I use the 'ancestry' gem to build the tree, and it provides named scopes on the Cla...
users_allowed_to_be_viewed.map {|u| "#{u.id},"}
but that gives 1,2,3,
What would be a short way to just get something like 1,2,3
...
Is there an alternative way to do the following one-liner replacement of text across all files in a Rails app?
perl -pi -e 's/replaceme/thereplacement/g' $(find . -type f)
Perl complains that there are too many files if I include the RAILS_ROOT, but it works for subdirectories.
...
This is the structure of my database in Ruby on Rails:
user have many notes
notes have many categories
categories have many notes
I have setup this relationship with has_many :through. I use
current_user.notes
to get the notes belonging to the user. But what is the best way to get the notes belonging to the current user that have a ...