similar to: <%= text_field %> - how to set the value to session name?

Displaying 20 results from an estimated 4000 matches similar to: "<%= text_field %> - how to set the value to session name?"

2006 Mar 17
1
RSS problem when trying to display ID - HELP
I want to append "#comment-1" or whatever, depending on the id to the end of my xml.link(" ... /#comment-1") attribute in my generated xml. Well, when I put: xml.link(" ... /#comment-" + comment.id) I get an Application error (rails) message when I look at the generated XML. This is what I''m doing without the id on the comments (its working fine):
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 Mar 26
4
Updating query results in real time with AJAX
I have the following view template: <%= form_remote_tag :update => "new_item", :url => {:action => ''create''}, :before => %(Element.show(''spinner'')), :success => %(Element.hide(''spinner'')) %> <div id="new_item"> </div>
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 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 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,
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 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 Jun 27
2
Render partials in folders
Right now I have partials in a view folder corresponding with my controller. ie: controller: example, view: example/_partial.rhtml and I call it with render :partial => ''partial'' How do I add the partial to another folder and call it? ie: controller: example, view: example/new_folder/_partial.rhtml render :partial => ''new_folder/partial'' # does NOT work
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 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 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 Jul 21
3
Interface with Flickr
Does anyone know how to get going with the flickr api WITHOUT using the ''flickr.rb'' gem? I''m wanting to just use the REXML and ''net/http'' stuff. I''m just wondering how to send requests to the api and handle the response. Any tips would be great! Thanks! -- Posted via http://www.ruby-forum.com/.
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 Mar 14
5
Dreamhost Database problems
I''m working on uploading my site to dreamhost. I just setup my production database, and gave it a host name. It said that it was successfully created. Now, it''s been like 25 minutes, and I still can''t connect to it. Is that normal? How can I get my tables created? Just wait it out? I''m trying to load it in the browser, and it says "server not
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