similar to: Render partials in folders

Displaying 20 results from an estimated 2000 matches similar to: "Render partials in folders"

2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target pointing to the iframe. All is working, but I would like to display an indicator of the upload. All I want to do is show a hidden animated gif via Element.show. With form_remote_tag, i could use the :loading and :complete callbacks to do an Element.show and Element.hide. How do I achieve a similar effect with form_tag?
2006 Jul 10
1
:revert => false for Droppables
Right now I am using page.remove and page.insert for some complex nested moves in RJS. I have my draggables set to revert, but they also revert when they hit a droppable. Meaning, the draggable will start reverting for part of a second before the page.remove kicks in. Is there a way to specify :revert => false for the drop_receiving_element, or something else to that affect? -- Respectfully:
2006 Jun 07
1
Upload to DB hang mentioned in wiki
I''m uploading files to a mysql database, using a mediumblob size. Following the wiki here: http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles , I got past the first mysql 500kb limitation with the max_allowed_packet = xM trick, setting it to 1000M. However, as the person at the very bottom of the wiki notes, I too cannot upload more than around 10mb. I also tried the suggested
2006 May 05
5
Attach a PDF File to an Email
Hello ~ I have an email that I need to attach a PDF to. The email is being sent, and a file is attached but it is not the original file. I am following the example: attachment :content_type => "image/jpeg", :body => File.read("an-image.jpg") changing it to: attachment :content_type => "application/pdf", :body => File.read("pdf/my.pdf")
2006 May 09
6
To Do list project?
I''m looking for a good web-based to do list app. Essentially, I''d like to use Basecamp''s todo management system, but that''s not an option since I can''t install Basecamp on a server I own. The information being tracked in the list cannot be sent out of my intranet. I would imagine that there are a couple of open source rails apps that would meet my
2007 Mar 12
7
Capistrano Hanging on Deployment
Hello ~ I am using the Capistrano recipe outlined in this post to restart my backgroundrb server: http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html My Version: ~~~~~~~~~~~~ task :before_restart, :roles => :app do restart_backgroundrb end task :start_backgroundrb, :roles => :app do sudo "nohup
2006 May 23
2
TextMate and Tabs
Hello Everyone ~ Recently I have been moving Rails files between Mac, Linux, and Windows. As many know the Windows Ruby version 1.8.4 doesn''t like tab characters. I know in TextMate on the mac you can replace your tabs with spaces from the Text > Convert menu, but is there a way to set it to do tabs with spaces instead as you work? The preferences do not seem to have such a
2006 May 17
4
Unable to connect to mySql localhost
Unable to connect to mySql localhost I installed MySQL 5.0 community version, without opening an account and leaving the password empty with the Path included in the environment variable. In the post-installation testing, I typed C:\mysqlshow, the error message is Mysqlshow: Access denied for user ?ODBC?@?localhost? <using password: NO> Next, in RadRails 0.6.3, when I double-clicked
2006 May 04
1
Wiki Best Practice
Hello Rails Community ~ Today I added tagging support to one of my Rails apps following this Wiki page: http://wiki.rubyonrails.org/rails/pages/ActsAsTaggablePluginHowto/versions/32 It outlined adding the necessary database tables with a schema description in table format. I altered the article to use a migrations approach with the code from the migration I created to add the two tables,
2006 May 11
3
LightHTTPD FastCgi Error in Production Mode
I''ve been banging my head against the following for about 8 hours now, and have exhausted my web research options: /usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21:in `require'': no such file to load -- /usr/home/matthew.feadler/rails/avclfc/public/../config/environment (LoadError) from /usr/home/matthew.feadler/rails/avclfc/public/dispatch.fcgi:21
2006 May 01
2
how to reference a file for download
I have an app that uploads files into the directory RAILS_ROOT/documents/ I tried to access the file for downloading using <a href="#{RAILS_ROOT}/documents/file_name">my file</a>. Rails prepends the controller name to the link so I get <a href=" http://localhost:3000/tasks/show_document/config/.../documents/file_name" What''s the right way to do this?
2006 May 17
2
NOOB: Passing parameters between pages
Folks, I have a rhtml page (page A) that links to another page (page B), and I want to pass some parameters from page A to page B. Here is the link code (on page A): <%= link_to ''Edit'', { :action => ''edit'', :id => permit }, :post => true %> If I want to pass a parameter "name" and a value "marcus", and pick it up on page
2006 May 24
2
Gallery2 integration
Is anybody working already in a gallery2/rails integration? I need to use it as part of my project, so, before start from scratch with it I''d like to know if already is something out there. Thanks.
2006 Nov 04
1
ActionMailer Sending Two text/plain Parts
Hello ~ I have a working ActionMailer Action that takes the template to use as an argument so I have one action that handles multiple emails. The email sends just fine, and the correct email templates are used, but ActionMailer is throwing in its own text/plain section in addition to the one I specify. Does anyone have any ideas on why this might be occuring, when I am specificially specifying
2006 May 08
8
RSS Feed / xml.link problem?
I''m having an odd problem. I''m trying to create an RSS feed (working off the Recipe), but "xml.link" generates error about "Can''t convert Hash to String". From the error trace, it *looks* like it''s calling the a fileutil ''link'' method (as in, filesystem symbolic link) - even xml.tag! generates this error. Er, how do I make
2006 May 19
37
OS for rails development: Windows vs. Mac?
Caveat: this is not a discussion about *hosting* a rails app on windows. Anyway...Macs are everywhere you look when researching rails (demo vids, tutorials, and pictures from rails training classes). I''m interested in what the pros to using a Mac for rails development are (besides textmate). Is it more of a cultural thing, a what would 37 signals do thing, is it a unix thing, or
2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my SQL: CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `user_name` varchar(80) default NULL, `login` varchar(120) NOT NULL default '''', `last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'', `last_attack` timestamp NOT NULL default ''0000-00-00
2006 May 27
2
[Repost] OpenID and my db schema
Hi, I posted this before, but didn''t get an answer, so I''m trying again. I''ve recently decided to use OpenID to let users log in to my site instead of old fashioned account creation. They''ll be able to add a small amount of personal details (about three things) to their account, and post messages in the site BB. I have an openid_users table which stores the
2007 Aug 01
4
stability of using scheduled workers
Hi, Going through the archive, and just keeping a general watch on this list seems to indicate that there are some issues using scheduling with backgroundrb. I need a worker that will perform some actions on an hourly interval. These actions will require access to several of the models in my application. I am currently using backgroundrb to handle processing of files, where I spawn a worker to
2006 May 08
4
<%= text_field %> - how to set the value to session name?
I''m trying to automatically fill a "posted_by" text by with whoever is logged into the session. How do you set the value attribute using "<%= text_field ... %>"??? I''ve tried: <%= text_field ''post'', ''posted_by'', ''value'' => User.find(session[:user_id]).name.capitalize) %> But I get