similar to: Writing to a file (newbie)

Displaying 20 results from an estimated 100000 matches similar to: "Writing to a file (newbie)"

2007 Feb 27
1
link_to :post true Newbie question
Hi All, I am attempting to use a link_to helper to perform a form post using the following construct: <%= link_to ''Save'', {:action =>''create''}, :post => true %> What I find is the parameters passed to the webserver are empty. My model validation stuff triggers indicating the fields in question are empty too. This is to create a new DB entry so no
2006 Jun 24
7
Newbie Q: "user" variable in every view?
Newbie to RoR -- as a long time Java Struts/etc. guy it is an awesome tool! I have implemented some basic login/session stuff with the help of a great tutorial, props to the author ( http://www.aidanf.net/rails_user_authentication_tutorial). I have a trivial instance method in ApplicationController, which just grabs the User object from the session. def current_user session[:user] end
2006 Mar 23
1
Newbie: Saving file from a URL into DB
Hi all, I''m just starting to learn RoR, and would like to ask a question. I know that we can ''upload'' file from local machine and save it to a database. Now, say I have a photo which I store in other website (for example Flickr). This photo obviously has a URL pointing to it, e.g. http://www.flickr.com/username/photoname.jpg. How can I ''save'' this
2004 Aug 06
0
Newbie question - on demand streaming?
> Well, a number of reasons. Dedicated streamers are better at streaming > audio/video than webservers, In theory. In practice this is not true. Apache is far more robust than any streaming server I've seen yet, and far more stable. Many of the scaling issues have been addressed, and the drawbacks are minimal. Streaming servers should be better for two reaosns. 1) they can be more
2008 Aug 29
4
newbie question for installation
Hi all... just something really confused. Today I downloaded "ruby186-26.exe" according the tutorial.. then have it installed without problem then I use "gem install rails --include--dependencies" to get rails then when I use "rails testabc" for my first application I got following errors: . .. ... create script/process/reaper create
2012 Feb 13
2
rsync ing files within an apache cluster - newbie
Dear All,?? Background information:? i have a cluster of 14 apache servers running behind a load?balancer?.hits to the server are random, there's no master webserver so uploads to the website may land on app server 1..14 depending on where it landed by the load balancer. What i need help with: i want to have all the "uploaded files" in all webservers to be in sync.here's a
2006 Apr 22
1
Newbie .. authorize.net
I am very new to RoR. I need to do: 1. credit card authorization only and / or 2. charge the credit card via the Authorize.net payment gateway via RoR? QUESTION 1. I came across the payment module available as a ruby gem. I am wondering if anyone has used this gem in a real life application to do the above? The other problem was that on this page:
2024 May 04
0
Joining Linux Domain Member to Samba DC, issues
I've posted on this not long ago, but I've run more tests since. Here's my situation (all Linux host running Samba Version 4.18.9) ... I have a Linux Domain Member, NAS, sharing a directory /public. Domain Windows users can map to this share and their domain user credentials are automatically accepted without them having to enter their credentials. This worked as well with our
2006 Jun 01
3
Newbie: HABTM problems
I''m new to RoR and trying to make a HABTM relationship work. I have no problems with displaying the fields (after I pumped the data into MySQL manually outside of RoR), but when I try to edit a record, it =does= save the changes in the primary record, but =not= the join table. When I look in the development log, I see the update to the main table, but nothing about the join
2004 Aug 06
3
Newbie question - on demand streaming?
Hi, >> Just thinking about migrating from Shoutcast..... I have a question >> on how to make Icecast behave as I have Shoutcast running, and provide >> "on demand" streaming via my web server. In other words, currently I >> have a link on my webserver such as thus: > > If you already ahve a websserver, why use icecast or shoutcast at all? Well, a number
2006 Jul 26
5
RoR data models ( extreme newbie question)
Sorry for asking this but I am keen to get on and build an app based on RoR and have had a look around at FAQa and the like with no immediate sucess. What I am looking for is an explainantion of the rules/requirements for table/index/coulumn names with RoR. RoR appears to have a set of expected naming conventions which it would appear you can over ride but it would seems a hell of a lot
2006 Mar 09
5
Newbie - Help Please
I am just getting off the ground with RoR. (actually just walking out to the runway) I want to setup a development / test environment as close to the production environment as possible except for OS (Win XP for Dev, Linux for Prod). I have Apache, MySQL, PhP installed and operating close enough to the production environment that all the PhP stuff I''ve done in the past seems to work
2006 May 29
3
Ruby on Rails hosting on BlueHost.com -- Feeback needed
hi Friends, Planning to use BlueHost.com for my Ruby on Rails application hosting on their $6.95 per month. Is anyone using them ? What version of ROR do they provide ? What kind of webserver does they provide ? How much RAM ? Can i re-start the web-server if my ROR application demands ? May be the above answers would be best answered by their sales dept. But if anyone is using them, please
2006 Mar 09
2
EXTREME Newbie Qestion - Is RoR the right tool?
So, the question for you who are RoR Gurus: is RoR the way to go? Here''s the challenge... A community service site (application?) that includes: * Community Forum * Blog (kind of - more like an editoral comment section) * Weather Forecasts by locale * Road Conditions * real time weather data * Searchable, by category & locale, Business Directory * Live Camera feeds *
2006 Jul 20
3
Newbie question-----Downloading a file and sending it to DB
Hi everyone, I''m new with RoR and I''m working on a project that uploads information (keys-values) from a file into a database. Here is the situation: Somewhere in this file there is a strin-table such as the following: "hello" = "hello world" "sayHIgh" = "Saying hello to the world" I have parsed the files with a ruby script in such a
2006 Mar 17
1
MySQL-Front strangeness - help needed, esp. from newbies
Greetings to all, I''ve had two reports of strange behavior from MySQL-Front this week from folks new to RoR who are working through the IR tutorial. I''m digging into it and would very much appreciate hearing from anyone else that''s seeing this. Newbies are in an especially good position to help here, as it appears that the problem lies in a recent release of
2006 May 30
3
Help about CMS - newbie in RoR
Hi team, I''m a very newbie RoR user from Spain and I''m developing a blog''s CMS. Why RoR?, coz I think it''s an amazing framework with many posibilities, portable and really powerful, with a young and optimist community, and taking my project I''ve prefered his structure in front of LAMP. Another thing is that I''ve liked to surprise my masters
2006 Feb 27
3
Newbie Question
Hi! I just ran the first few Rails tutorials and I''m really impressed at how quickly I was able to get something up and running. I''m slowly emerging from the stone ages, and leaving my powerbuilder behind ? yes, I know, keep the snickering to a minimum please! I started into J2EE/STRUTS, but was quickly frustrated by how long it would take to code anything but relatively
2004 Aug 06
2
Newbie question - on demand streaming?
Hi, Just thinking about migrating from Shoutcast..... I have a question on how to make Icecast behave as I have Shoutcast running, and provide "on demand" streaming via my web server. In other words, currently I have a link on my webserver such as thus: http://myserver.org:9000/content/mytrack.pls ....and the user is connected to the Shoutcast server running on port 9000 and streamed
2007 Dec 18
0
Google Gears with RoR
Has any one successfully used Google Gears with RoR to enable ''offline'' mode for their web application? Please share your thoughts/ experiences with using Google Gears or Dojo offline with RoR to move your application offline. I''d be interested in enabling offline mode (basically to download and store huge files locally) while I manipulate them. thanks! ponnada