that doesn't work for you, download the source for Git from the web
and build it locally. It isn't that hard to do on Linux.
On Oct 15, 12:16 pm, Mukund wrote:
> before blaming backgroundrb, make sure your ruby application works in
> production mode & development mode
before blaming backgroundrb, make sure your ruby application works in
production mode & development mode. Then try to start backgroundrb;
it tries load an instance of your rails application and the errors you
see might be due to your application.
On Oct 15, 6:40 am, Sapna Ruby
wrote:
> PLS HELP
Create an observer for the message model and do your updates.
On Sep 29, 12:59 pm, Fernando Perez
wrote:
> Let's say I have the following models:
>
> User, has_many :messages, :topics
> Forum, has_many :topics
> Topic, belongs_to :user, has_many :messages
> Message, belongs_to :user, :topic
>
>
Why don't you create a dummy rails project on 2.3.x and copy your code
over? It isn't as elegant as using the rake task, but it will
work. You will need to rename application.rb to
application_controller.rb, but the rest should be more or less
straightforward.
On Sep 29, 12:45 pm, Sandip Ra
Write your own validate routine instead of using the helpers.
On Sep 29, 11:32 am, "Thriving K."
wrote:
> I found another problem when i use this code
>
> validates_presence_of :mobile_number,:if => :phone_number_blank_check
> validates_presence_of :phone_number,:if => :mobile_number_blank_check
Not possible to guess without the actual code. A good check would be
to run the generated HTML through the W3C HTML validator to see if
there are some malformed tags causing the issue.
On Sep 21, 12:32 am, Gavin wrote:
> Anybody else experience this problem:
>
> I've recently created two applic
To add to Fred's note, you don't need to pass a controller class level
variable (@participant) as a local variable to a second partial in the
same request cycle as it is already visible.
On Sep 17, 2:35 pm, Frederick Cheung
wrote:
> On Sep 17, 6:17 am, windtrack wrote:> I'm not able to
> get p
@Kevin. Did you use rake db:migrate to build your database? I think
hemidull was recommending to drop the schema and redo it. But if you
are building your database externally, then the error shown above
means that the table doesn't exist. If table does exist, it means
your database.yml config
$('usa_states_').value will return the first selected item's value.
It doesn't matter if it is a multiple select. Change your UI a bit.
On Sep 16, 11:13 am, Salil Gaikwad
wrote:
> Hi All,
>
> I want to use observe_field on multiple select box.
> following is my code
>
> <%= select_tag 'usa[sta
You will need to restart the Rails application that is running in
production mode if you change the schema.
On Sep 16, 2:31 pm, "Simone R."
wrote:
> Hi everybody,
>
> I'm trying to convert to Ror one of my old ASP classic project.
>
> the website is an e-commerce with a community
>
> In this web
Use delayed_job instead of backgroundrb if your application is large
and you need more than one worker. backgroundrb starts one
application process per worker which eats up RAM.
On Sep 9, 11:13 am, Sandip Ransing wrote:
> Hello
>
> How do i start backgroundrb server on server reboot ??
>
> Than
Ruby handles date ranges as integers internally so it is a bad idea to
try that. You can do something simpler using the array syntax of
conditions
:conditions => ["received_date >= ? and received_date
<= ?",posted_date, posted_date]
This will form the necessary SQL for the database query.
O
Where is the belongs_to :town in the Street Model?
class Town < ActiveRecord::Base
has_many :streets
has_many :houses, :through => :streets
end
class Street < ActiveRecord::Base
belongs_to :town
has_many :houses
end
You can then do Town.first.houses just fine.
On Sep 9, 4:25 pm, steven
Use JSON for passing array data between Ruby and Javascript. I think
you missed the #{} inside the string above.
<%= radio_button "ab", "cd", { :onclick => "abc(#
{weight_array.to_json})"; } %>
On Sep 9, 2:26 pm, Hemant Bhargava
wrote:
> I have an array named weight_array. Now i want to pass i
params[:subscribers].each do |subscriber_hash|
my_record = SubscriberModel.new(subscriber_hash)
my_record.save
end if params[:subscribers]
Assuming that SubscriberModel is an activerecord model that maps to a
table with similar layout as the hash.
Otherwise, define your own class with an i
I don't see why this is an issue for you. & is the right
representation, the browser takes care of rendering that as a quote.
You need to see what you are doing with the incoming data before
displaying it. Also, have a look at html_escape() / h() helper
function and sanitize data before database
No. This is the right way to do it. Data type matches are necessary
for functionality, you can't ignore those.
On Sep 2, 3:45 pm, Quee Mm wrote:
> Well it turns out that it was a string vs integer issue. I have my
> fields in db as string and the code was generating a integer so that
> caused
The API documentation will help with these. Bookmark
http://api.rubyonrails.org
http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M001739
On Aug 26, 8:50 pm, Dudebot wrote:
> Oops, meant to say "In my sessions view I have..."
>
> On Aug 26, 10:48 am, Dudebot wrote:
>
enter just processes the submit button. if you disable the submit
button, then enter key press will be disabled as well. personally, i
would get rid of the submit tag and use a image_submit_tag to get rid
of stupid keyboard annoyances. This will force the user to click on
the link to submit an
If it is a class, why are you encapsulating it inside a module? You
should be able to put the class rb file in your lib directory and use
it in your controller. Make sure you name the file right. Again if
you need to namespace it inside a module, just include the module in
your controller usin
For admins and users, I would keep them both in the same table with a
role field to differentiate them. It really depends on your security
requirement and if admins and users login using the same
authentication mechanism. A role table for lookup is required.
For colors, MYSQL allows an ENUM ty
Modify your path to use /opt/local/bin before /usr/bin
On Aug 27, 5:59 am, binku <006600...@gmail.com> wrote:
> On 8月27日, 上午2时45分, "Frederick C. Lee" wrote:
>
>
>
> > Here's my environment (Mac OS X 10.5.8):
> > [/Users/Ric/workarea/rails/demo]ruby --version
> > ruby 1.9.1p0 (2009-01-30 revision
Make it a named_scope instead of a function so that it can be chained
in the future.
Class Post
named_scope :other_users_posts, lambda { |user_object| {:conditions=>
["user_id <> ?", user_object.id]}}
end
You can then do a Post.other_users_post(User.first) as an example and
chain it just like ot
Depends on the protocol for the websites. It is difficult to parse
all possible protocols. Assuming you are only talking about http, you
can do something like
regex = /^(https?:\/\/)/
@user.website = "http://"; + @user.website unless regex.match(website)
On Aug 26, 2:14 pm, AnhHung wrote:
> H
> ..
> I mean i want to write every time at line number 3 and character number
> 10 of file myfile..
> Then how can i ..?
>
> I'll tell you the whole answer after resolving it .. :)
>
> Mukund wrote:
> > Rails has scriptaculous and prototype built in and there are h
Rails has scriptaculous and prototype built in and there are helpers
for autocomplete already. Have a look at the API documentation for
autocomplete.
On Aug 25, 11:25 am, Hemant Bhargava wrote:
> Hello Champs,
>
> I fetch out the values of a table (suppose users) from database and want
> to sho
That should read Ruby 1.9. :)
On Aug 26, 10:11 am, Mukund wrote:
> Did you update your gems after moving to Rails 1.9?
>
> On Aug 25, 2:58 pm, Damian Terentiev
>
>
> s.net> wrote:
> > Despite the claim that Rails now work under 1.9, I fail:
>
> > testapp\ $
Did you update your gems after moving to Rails 1.9?
On Aug 25, 2:58 pm, Damian Terentiev wrote:
> Despite the claim that Rails now work under 1.9, I fail:
>
> testapp\ $ script/console
> script/console:2:in `require': no such file to load --
> script/../config/boot (LoadError)
> from script/co
You can set breakpoints in Netbeans. It integrates with rails-debug-
ide very nicely. I recommend Netbeans.
On Aug 25, 6:21 pm, RVince wrote:
> Thanks guys -- may be a dumb q, but...
>
> It seems that if you are coding rails, there's little you need/want
> other than syntax highlighting (and pe
veRecord::Base
establish_connection :xyz
@abstract_class = true
end
class User < OracleConnectBase
# life goes on
end
Regards,
Mukund
On Aug 24, 7:04 am, David Angga wrote:
> we can use multiple database in one rails app.
> here's the example :
> database.yml
> devel
You can use the RestfulClient gem to test it out instead of CURL.
On Aug 19, 1:00 pm, hitch wrote:
> The format is determined by the HTTP Accept header, and not by adding
> an extension on the URL.
> So, your url remains /sessions/create and not /sessions/create.xml
>
> You can test this out by
Why are you calling user_path(user) instead of just the id?
On Aug 18, 7:35 pm, Tony Tony
wrote:
> Hi all,
>
> Hopefully this is easy for you guys. I'm trying to output a list of
> usernames and everything has been working well. However, when I added a
> user with a period in their username it g
On OS-X, you do need to install mysql gem with
sudo gem install mysql -- --with-mysql-config = /usr/local/mysql/bin/
mysql_config
See if that works before blowing away MySQL.
On Aug 19, 12:54 pm, Craig Westmoreland
wrote:
> No i didnt do that - the tutorial i followed (hivelogic) never
> menti
You can enable the :protect_from_forgery which puts in an authenticity
token with every form. This is on by default in the new version of
Rails. This is a random ID tied down with the session. This is not
the same as what you are looking for, but it will probably suffice.
On Aug 19, 2:47 pm, T
Don't do @cfacs=Fac.all
(:joins=>:conts, :select=>"facs.*,facs_conts.*,conts.*")
If you need only the conts.id along with any other data that you need,
do
@cfacs = Fac.all(:include => :conts, :select=> "conts.id, facs.*")
You don't need to specify the join as the relationship takes care of
it.
Try Heroku or if you want to DIY, try SliceHost.
On Aug 5, 5:10 pm, Ritvvij wrote:
> Hi,
>
> I finished developing a website in ROR and want to host it.
> Which is the best hosting service for ROR???
> Someone who will have ROR based tech support too?
>
> I tried godaddy and its pathetic. They u
Did you build the mysql gem with the correct version of the mysql
client library? try the -- --with-mysql-config=/path_to/mysql_config
option and make sure it is the right version?
On Aug 4, 8:54 pm, Mosses Akizian
wrote:
> Hi. A newbie. I installed/upgraded all the proper (at least that I know
Optimization really depends on the developer. The ORM framework has
limitations. You could move the fetch outside the loop and use
specific fields to reduce memory usage as well. For example
(illustrative)
<% avail_category_ids = @product.categories.all(:select => "id").map{|
category| categor
you can specify the active_record store for the session so it is not
stored as a cookie on the user's browser, but on the sessions table in
your database.
On Aug 2, 11:51 am, Phlip wrote:
> Rails List wrote:
> > In my application I need to track user's application state such as in
> > which city
Use the delayed_job plugin if you find it hard to tweak scripts to
your taste.
On Aug 4, 1:19 am, Penelope wrote:
> Yes, I restart, but nothing change. Continuing send the old e-mail.
> Send one time the new, but after every hour send the old.
>
> Do you know what I have to do?
> Thanks
>
> On A
use an absolute path for the image file. I think you can use /images/
img02.gif.
On Jun 29, 4:19 pm, Valentino Lun
wrote:
> Dear all
>
> Why the following error appear in development.log?
>
> Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29
> 19:09:05) [GET]
>
> ActionContr
Check for bad database queries that take a long time to execute and
load more junk than you need.
On Jun 27, 4:35 am, Developer In London
wrote:
> I seem to be getting a problem where my rails application seems to be
> leaking memory when I load a page. It starts off at about 737mb free. After
>
Can you configure your SMTP server to be in queue mode as mentioned in
the comment to that article?
On Jun 29, 5:15 pm, Aldo Italo
wrote:
> i need a system for sendig automatically bulk email to 300 users, when
> my customer insert or update news.
> I've tryng with simple actionmailer, but it s
Use flash.now instead of plain flash when you do the assignment.
-- from the API docs
now()
Sets a flash that will not be available to the next action, only to
the current.
flash.now[:message] = "Hello current action"
This method enables you to use the flash as a central messaging system
You don't have an :update specified on the parameters for
observe_field. Assuming you don't want to render anything, do a
render :nothing=>true in the controller.
On Jun 15, 2:53 am, Fernando Perez
wrote:
> Do I need to set a respond_to block in the update action of the
> controller for rjs? I
Install the following gems.
1) Rails
2) MySQL (try sudo gem install mysql -- --with-mysql-config=/usr/bin/
mysql-config if the normal sudo gem install mysql fails)
Once both of those are successful, you can configure database.yml to
point to a valid schema a try it out.
On Jun 15, 3:23 am, Nik
Replace the class variable with a method call instead?
On Jun 10, 7:48 pm, Jodi Showers wrote:
> Makund - it is quite likely that your solution will break when
> multithreading arrives (as will will loads of other stuff)
>
--~--~-~--~~~---~--~~
You received thi
It is not as simple as running your application in JRuby and deploying
on the App engine.Datastore is different on Google App Engine and
you will need to do significant work to accommodate Google's big table
instead of active record. Moreover, those APIs are Java only which
will require you
Let active record do the work for you. Put in a
before_validation_on_create (or update or whatever) hook in your model
and do the changes you want. Also, isn't Date.civil the same as the
normal date convention we use?
On Jun 10, 12:39 pm, Vikas Gholap
wrote:
> Hello All,
>
> My problem is i ha
Have a look at active_record::observers and wrap the save method with
an update to the ip address. Declare a class level variable in
application.rb with a before_filter that populates the IP into the
variable (and subsequently used by the observer).
On Jun 9, 2:44 am, Chris wrote:
> As part o
Why don't you write your own routine to wrap text? Here is a simple
one.
def wrap_text(txt, col = 80)
txt.gsub(/(.{1,#{col}})( +|$\n?)|(.{1,#{col}})/,
"\\1\\3\n")
end
Have a look at
http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/
for explanation.
On Jun 9, 2:20 p
Netbeans works fine on Linux. No additional gems are required to move
to production from development. Which Linux distro are you going to
use? If you are going to install ruby 1.9, then Ubuntu has some
additional steps (I hate those) required for SSL support, etc.
Search for those on the net.
What is 'f' ? form_tag or field_tag for which object?
On Jun 8, 10:57 am, Zhenning Guan
wrote:
> <%= text_field_tag 'login' ,nil, {:class => 'line'} %>
> the old way work.
>
> <%= f.text_field :login, :class => 'line' %>
> but why this doesn't.
> --
> Posted viahttp://www.ruby-forum.com/.
--~
Konquerer isn't officially supported by Prototype.js which Rails uses
for it's Ajax stuff.
The latest version of Prototype is compatible with the following
browsers:
Browser Version(s)
Mozilla Firefox ≥ 1.5
Microsoft Internet Explorer ≥ 6.0
Apple Safari≥ 2.0
Opera ≥ 9.25
Depends on how you layout your models. Things like "left join
my_other_table on my_other_table.forein_key_id = my_table.id" are
taken care of by AR if you set up the associations properly. You
could then do a Model.count(:joins=>..., :conditions=>)
On Jun 4, 12:38 am, Fernando Perez
wrote
N/M. Realized that you were talking about the factory-girl gem.
On Jun 2, 11:36 am, Mukund wrote:
> Move that to a module and include it as a mixin in your model?
>
> On Jun 2, 10:00 am, Sijo Kg wrote:
>
> > Hi
> > In the model I have User
> > at
Move that to a module and include it as a mixin in your model?
On Jun 2, 10:00 am, Sijo Kg wrote:
> Hi
> In the model I have User
> attr_accessor :validate_email_id
> validates_presence_of :email ,:if => :validate_email_id
> Could anybody please tell me how can I define a Factory for the a
class Post
has_one :author, :autosave => true
end
The autosave will take care of saving associations when the parent is
saved.
On May 28, 2:19 pm, Milan Dobrota
wrote:
> Having one to many connection (for example post has many comments), what
> is the most efficient way of saving all commen
Why not use ActiveRecord's readonly!() feature while fetching the
record instead?
Readonly <> immutable in memory in my opinion. I don't see why you
need to raise exceptions for column assignments as long as they are
not stored back to the database.
On May 28, 5:30 am, "kevincol...@gmail.com"
require 'uri'
uri = URI.parse("http://www.ruby-lang.org/";)
p uri
# => #http://www.ruby-lang.org/>
p uri.scheme
# => "http"
p uri.host
# => "www.ruby-lang.org"
http://www.ruby-doc.org/core/classes/URI.html
On May 28, 1:57 pm, Sean Six wrote:
> Suppose a user submits a url:http:
Use the spawn plugin to fork new processes for each query once you
address the database optimizations.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to
Why do you want to load all the posts into memory? For doing a
count, rely on SQL instead of Ruby. It is faster and more efficient.
Post.count(:conditions=>"xxx") translates into a select count(*) from
posts where "xxx"
When someone clicks on the month title, you can always do a query with
a
JRuby allows access to your Java methods and runs in the same JVM.
Have a look at it and run your RoR application using JRuby. No need
for IPC / XML.
http://wiki.jruby.org/wiki/Calling_Java_from_JRuby
On May 28, 7:52 am, Ritvvij wrote:
> Hello everyone,
>
> We have an existing application in
I assume you are limited to one available port on a static address
that you want to use for multiple Rails applications.
You can accomplish this by configuring Apache so that it talks to the
correct mongrel instance based on the incoming request.
Example: http://xyz.com/app1 would go to mongrel
Use prototype functions to handle the onload events. It is better
than plugging in onload code into your HTML tags. Look at the online
documentation for examples. You can use either the dom:loaded event
or the window:onload event.
On May 11, 1:50 pm, Sijo Kg wrote:
> Hi
> In my partial
Have you installed SQLite3?
On May 11, 5:57 pm, Dima Korneljuk
wrote:
> Hello everyone!
> I try run simple RoR application, I go to RoR default "hello page",but I
> got error, when trying to open new views.
> Status: 500 Internal Server Error
> could not open database: unable to open database
Check the lines in the log above SELECT * FROM "readings" WHERE
("readings"."id" = '10') LIMIT 1
Rails tends to break up long SQL statements into smaller ones. More
information about your code snippet is required to make any guesses.
Have a look at
http://api.rubyonrails.org/classes/ActiveReco
Just discovered that http://railsapi.com/ is way better.
On Apr 23, 2:08 pm, Peter Vandenabeele
wrote:
> On Thu, Apr 23, 2009 at 9:58 AM, Joshua Partogi wrote:
>
> > The domain is being parked.
>
> Could I get the raw ip address of the server for api.rubyonrails.org ?
>
> Thanks,
>
> Peter
--~
http://www.railsbrain.com/ has the API docs.
On Apr 23, 2:08 pm, Peter Vandenabeele
wrote:
> On Thu, Apr 23, 2009 at 9:58 AM, Joshua Partogi wrote:
>
> > The domain is being parked.
>
> Could I get the raw ip address of the server for api.rubyonrails.org ?
>
> Thanks,
>
> Peter
--~--~-~
how about this?
lookup = { "word"=>"newword",..}
first_word = @message[0...@message.index(" ")]
first_word = lookup[first_word]
On Apr 23, 1:22 pm, Robert Scott
wrote:
> Does anybody have a good starting point for how to read the first word
> of a string and then, based on several defined pair
--
Here is a dig
; <<>> DiG 9.4.2-P2 <<>> rubyonrails.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1009
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;rubyonrails.org.
The issue I have is with active_scaffold setting itself up when the
controller loads in production mode. While I can use
active_scaffold_config to change options, it would be easy to wipe the
slate clean and reload the controller for a particular scenario. The
alternative is to reload the appli
How do I re-initialize a controller / model in production mode so that
it reloads?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@goo
Thanks for the plugin. It does make life easier while integrating
tinyMCE.
On Feb 23, 12:06 pm, Kieran P wrote:
> Hey,
>
> Announcing the release of tiny_mce plugin 3.2.1.1-1.
>
> Changelog:
>
> * Rewrote test suite
> * Added comments throughout the plugin for future developer
> - to all user
Use Rails in-built caching instead. If you want to use bundle_fu to
obfuscate your scripts, then you need to note that it will take a long
time the first time the server is run for doing the caching.
Subsequent requests will be faster.
Regards,
Mukund
On Feb 12, 11:25 am, zero0x wrote:
>
What does your Rails application do that other developers will be
interested in? If you have some neat functionality that you want
others to use as a library, then release it as a gem. If your entire
application does something wonderful, put in a SOAP or REST interface
to it so it can be host
Try the liquid plugin.
Start here. http://wiki.rubyonrails.org/rails/pages/Liquid+Plugin
On Jan 9, 11:10 am, Bob Sanders
wrote:
> I'm curious how to let the user edit the public/stylesheets/site.css
> file through views (e.g.,http://localhost/admin/edit_stylesheet).
>
> Do you know what steps I
Personally, I would add in the logic to clean up old sessions
periodically or during login.Also, is there a reason you are not
using Rails 2.1.2 or even better 2.2.2? Staying updated with Rails
versions usually resolves any odd defect that you see.
Thanks,
Mukund
On Jan 7, 3:36 am, Tim
My recommendation is to use Netbeans 6.5 instead.
On Jan 7, 9:31 pm, Samuel Nilsson
wrote:
> Hi,
>
> I'm a real newbie both in Rails and Ubuntu but I'm going to learn Ruby
> on Rails for a schoolproject. I've tried to find out what IDE is best
> according to different tutorials and blogs and hav
git-svn might be worth a look. But to be honest, I find it a
headache to keep things in sync between two version control systems
when different people update each system.
On Jan 8, 3:09 am, Jeff Pritchard
wrote:
> Hi,
> I've been using SVN and Capistrano with rails for a long time now. I'm
>
Use the flash object to transfer data between controller actions.
Regards,
Mukund
On Jan 8, 2:01 am, Lance Klusener
wrote:
> The question is about passing data from action of one controller to
> action of another controller.
>
> Inside the new_patient_controller i have the followi
Git requires getting used to, but it is good after you learn the
ropes.
On Jan 8, 12:58 pm, Bosko Ivanisevic
wrote:
> After years of using various version controls like CVS and SVN, I
> finally ended with Git.
>
> On Jan 7, 9:36 pm, pepe wrote:
>
> > Hi all.
>
> > I want to apologize, I guess t
Use render_to_string(options = nil, &block) and use the send_data
API.
On Jan 8, 7:27 am, Raj wrote:
> I need to provide users a link to download an user_guide.txt file.
>
> Currently the user_guide.html.erb looks like this.
>
> Dear <%...@user.name %>,
>
> Please visit <%...@unlocking_webist
form_for results in a POST operation. You are checking for
request.xhr? in your controller to render the partial. Use
remote_form_for instead to get a XHR request.
Pressing an enter key in a text field doesn't submit a form. The tags
don't add that in.
Regards,
Mukund
On Jan
Use the backgroundrb system. It scales better in the long run as you
decide to do more stuff in the background and require better control.
http://backgroundrb.rubyforge.org/
On Jan 8, 12:58 pm, Zhao Yi wrote:
> I need to run a background task which should last several hours. How can
> I do thi
Create a form without a submit tag. Put in another control on the
web page that does $('id_of_my_form').submit(); using a javascript
onclick event or whatever.
Regards,
Mukund
sa 125 wrote:
> Hi - I have the following problem: my app has a form that acts as a
> filter to a t
Once you decide on an HTML element to hold the results from the
controller action, you can do simple things like a "remote_function"
to update it.You can render a partial into a div as well, so don't
bother trying to generate HTML tags in your controller.
On Dec 6, 2:13 am, "Greg Hauptmann" <
Does anyone have an input on connection pooling and which approach is
better?
On Dec 5, 10:35 am, Mukund <[EMAIL PROTECTED]> wrote:
> For multiple database connections, is it better to have a mixin
> included into the model that does a establish connection on included
> event or
For multiple database connections, is it better to have a mixin
included into the model that does a establish connection on included
event or is it better to have an abstract class that establishes the
connnection and inherit from the abstract class? In particular, how
do Rails handle database
Why don't you use the socket option in database.yml to point to
opt/... ? You can use this setting for development and another for
production. Alternatively create database.mymachine.yml and
database.production.yml and link the right file to database.yml
On Nov 12, 12:16 pm, Pål Bergström <
Why do you need to maintain a directory of files?There are preset
directories already for anything you do with the Rails MVC framework
and the lib directory gives you a spot to put additional modules.
Static files that get pushed to the users belong in the public/
directory, etc.
You will nee
Use hpricot plugin to handle HTML parsing.
On Oct 22, 9:14 am, Kim <[EMAIL PROTECTED]> wrote:
> Hi here is the array I am scanning:
> ["\n frameset~2489041&FF=rwr+121&1,1,\">The Academic Writer: A Brief Guide a>\n\n\n Ede, Lisa\n\n\n\n Valley
> Reserves -- VR 282 -- AVAILABLE\n\n\n\n \n\n\n tr>
I recommend you store the data in your database in UTC format. You
can always reformat the data being displayed to local time zone.
Have a look at the tzinfo plugin for proper conversion to local time
with day light savings, etc
http://tzinfo.rubyforge.org/doc/files/README.html
.
On Oct 21, 11
Have a look at backgroundrb. http://backgroundrb.rubyforge.org/
On Oct 21, 7:20 am, Jeff Pritchard <[EMAIL PROTECTED]>
wrote:
> At present I'm working on a couple of different Rails projects, each of
> which has to have background tasks running for a variety of reasons
> (handling large imported
That link is outdated. Restful authentication can be found at
github. However, all solutions have issues you need to be aware of.
Just make sure you pick a stable version and learn the limitations.
http://github.com/technoweenie/restful-authentication/tree/master
http://rails_security.lighth
http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M001343
On Oct 20, 10:44 am, Evan <[EMAIL PROTECTED]> wrote:
> I guess the question I was really getting at is how can I validate the
> presence and association of both objects before they are saved? I feel
> more confi
http://api.rubyonrails.org/classes/ActionController/Base.html#M000459
I do recommend you buy a book on Rails. It is worth the
investment.
On Oct 20, 12:51 pm, Jay Pangmi <[EMAIL PROTECTED]>
wrote:
> Hi, I've created a form and when I click "Place Order" button, I'm taken
> to the checkout detai
Why don't you use Google or Yahoo!'s site search feature? It is as
simple as plugging in a javascript.
http://code.google.com/apis/customsearch/
On Oct 20, 5:44 am, Scott <[EMAIL PROTECTED]> wrote:
> Hello, if anyone can help implement/develop a site's SEARCH feature
> please reply. Thanks.
--~
Use the spawn plugin.
On Sep 9, 3:29 pm, Sandeep Gudibanda <[EMAIL PROTECTED]
s.net> wrote:
> Hi,
>
> I have different kinds of mails going out. For eg:
>
> 1. signup
> 2. notification mails
> etc
>
> I am using mailer queue to avoid mongrels waiting on email to be sent.
> However, it makes sense
http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M001753
I assume you have the Ajax and the update parts right. It is a
question of populating the right value into @machine.
On Sep 9, 2:03 am, Will <[EMAIL PROTECTED]> wrote:
> I have a collection_select dialog that I
1 - 100 of 103 matches
Mail list logo