A production app is using FeedNormalizer in an rss daemon. The worker
opens a 'Source' (the apps naming convention for an RSS feed), parses it
using FeedNormalizer, and does the business on the items in the feed;
feed = FeedNormalizer::FeedNormalizer.parse open(source.rss_url)
A beta tester adde
I have a similar problem. Upgrading to Rails 2.2.2 from 2.1.2 i've
lost all view components that are inserted with content_for.
The content_for call sits inside a view helper, which in turn is used
inside the view (eg http://railscasts.com/episodes/30-pretty-page-title).
If i move the content_for
There are two cases I'm concerned about here when a user logs out,
then clicks the back button:
1. the user presses the "back" button and goes back to a page that
would otherwise require authentication
Right now, the existing page is still kept in cache, so private data
is still being seen. I'm
Hello again,
So let's back up one step. Your error is "You have a nil object...",
let's prove that is true.
How about changing the
<%= link_to %>
to something simple like
Product ID: <%= product %>
Then, when that gives you nil cut the loop out and insert a statement
that displays som
Looks to me like you need to include the script.aculo.us library,
which is found in your public/javascripts/ folder. However, add this
to the of your application layout:
<%= javascript_include_tag :defaults %>
Then make sure that everything is in the javascripts folder.
On Nov 24, 1:34 am, Sma
hi friends...
Ajax problem
please help me.
Ajax using delete the record
Browser Mozilla
my controller:
def delete
Book.find(params[:id]).destroy
redirect_to :action =>'book'
end
my view:
<%= link_to_remote (image_tag("../images/delete_bt.gif", :border => 0)),
:url =>{
I try the command "rake db:migrate" and it tells me it cannot find
libmysql.dll file.
On Nov 24, 1:02 am, "Mr. Watson" <[EMAIL PROTECTED]> wrote:
> It will let me go into mysql but I want to create a database. It is
> not letting me. It says install gem mysql... I did that and got an
> error. It
It will let me go into mysql but I want to create a database. It is
not letting me. It says install gem mysql... I did that and got an
error. It reads "While generating documentation for mysql... MESSAGE:
Unhandled special: Special: type=17..." etc
On Nov 24, 12:45 am, "Mr. Watson" <[EMAIL PROTEC
the command "mysql -u root" worked for me.
Thanks,
On Nov 24, 12:37 am, "Mr. Watson" <[EMAIL PROTECTED]> wrote:
> Nothing. It just gives me the help list.
>
> On Nov 24, 12:31 am, "Simon Macneall" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Remove the space between the -p and root
>
> > ie mysqla
Are you trying to log into the mysql command line tool to do sql queries
etc?
if so, then it isn't mysqladmin, it is just mysql
ie 'mysql -u root -proot'
if you are actually trying to do something with mysqladmin, you need to
put that command on the command line,
ie 'mysqladmin -u root -proo
Nothing. It just gives me the help list.
On Nov 24, 12:31 am, "Simon Macneall" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Remove the space between the -p and root
>
> ie mysqladmin -u root -proot
>
> Simon
>
> On Mon, 24 Nov 2008 15:27:07 +0900, Mr. Watson <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hello
Hi,
Remove the space between the -p and root
ie mysqladmin -u root -proot
Simon
On Mon, 24 Nov 2008 15:27:07 +0900, Mr. Watson <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
> I am having problems with MySQL.
>
> Running: PC with Windows Vista
> Installed: Instant Rails AND RoR on (http://www.rub
Hi Schalk,
I've noticed that myself. It seems that at some point the what
gemspec file got corrupted or abandoned or your guess goes here in
gold. You've got maybe three options available.
1) Find a pre-built gem in whatever passes for package format on your
os.
2) Build your own gemspec to a
Hello,
I am having problems with MySQL.
Running: PC with Windows Vista
Installed: Instant Rails AND RoR on (http://www.rubyonrails.com)
I have edited the database.yml file.
I went to C:/InstantRails/mysql/bin>mysqladmin -u root -p root
And it says "password:".
I press enter and it shoots thi
Excellent. I'm still trying to figure out what was missing, but there
must have been a dependency missing. I'm glad I could help.
On Nov 23, 11:45 pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
s.net> wrote:
> Everything works now. Thank you soo much for your help. Just a recap I
> think the problem wa
Does anyone know the purpose of a hidden file called ".gems" in my
home folder on os x?
--~--~-~--~~~---~--~~
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-tal
Everything works now. Thank you soo much for your help. Just a recap I
think the problem was my ruby install the ruby full install command you
gave fixed everything.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message becaus
I'm following railscasts tutorial on fragment caching, everything works
great except for the sweepers. When i put expire_fragment(%r{.*})
directly in my controller, i can expire my fragments with wonderful
ease. Yet when i write a nice little sweeper like this code block,
nothing gets expired (the
Make sure you put the dash in between ruby and full.
Looking at what you installed, I'm thinking that is not the problem,
but it might not hurt.
On Nov 23, 10:45 pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
s.net> wrote:
> Bobnation wrote:
> > Did you do an apt-get install ruby-full or just the ruby
Bobnation wrote:
> Did you do an apt-get install ruby-full or just the ruby package?
>
> On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
I'm assuming if i have the latest version wouldn't everything with it
come installed?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--
Bobnation wrote:
> Did you do an apt-get install ruby-full or just the ruby package?
>
> On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
I've also tried the command you put there and received this message:
[EMAIL PROTECTED]:/usr/local/lib/site_ruby/1.8$ sudo apt-get
install ruby full
Bobnation wrote:
> Did you do an apt-get install ruby-full or just the ruby package?
>
> On Nov 23, 10:34�pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
I used this command: $ sudo apt-get install ruby irb rdoc libruby1.8
ruby1.8-dev
I got it from Beginning rails from novice to professional book.
--
Did you do an apt-get install ruby-full or just the ruby package?
On Nov 23, 10:34 pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
s.net> wrote:
> Bobnation wrote:
> > This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/
> > site_ruby/1.8/ubygems.rb
>
> > It looks like it is missing a
Bobnation wrote:
> This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/
> site_ruby/1.8/ubygems.rb
>
> It looks like it is missing an "r" ... but I might just be nitpicking
> here. Have you tried installing an older version (say 1.3.0) and then
> updating to 1.3.1? Also, do you
Bobnation wrote:
> What OS are you using?
>
> On Nov 23, 7:28�pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
Actually i just upgraded to Ubuntu 8.10, tried the same steps and still
got the same error message.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--
This line seems strange: install -c -m 0644 ubygems.rb /usr/local/lib/
site_ruby/1.8/ubygems.rb
It looks like it is missing an "r" ... but I might just be nitpicking
here. Have you tried installing an older version (say 1.3.0) and then
updating to 1.3.1? Also, do you have the development headers
Philip Hallstrom wrote:
> http://agilewebdevelopment.com/plugins/search?search=friends
>
> Find one that only requires a *single* row in the database to indicate
> you and I are friends as opposed to "Philip is a friend of Thani"
> *and* "Thani is a friend of Philip".
>
> Last time I did this
Nick Hoffman wrote:
> Hi Ashit. Another thing that you can do is test out the various URL
> and path helpers in your app's console. For example:
>
> $ script/console
> Loading development environment (Rails 2.1.0)
>>>
> ?> app.photos_url
> => "http://www.example.com/photos";
>>>
> ?> app.photos_p
Message.all.sort_by { |m| m.comments.blank? ? m.created_at :
m.comments.last.created_at }[0..4]
--~--~-~--~~~---~--~~
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 rubyonr
On Nov 4, 8:08 am, Vahagn Hayrapetyan <[EMAIL PROTECTED]
s.net> wrote:
> Issue solved!
>
> users.resource:houses, :controller => 'user_house'
>
> instead of:
>
> users.resource:house, :controller => 'user_house'
> end
>
> Apparently the resources are always plural, regardless that a user only
> ha
Thanks ahead of time for everyone who will help out with this.
I have a profile page for a blog engine I'm writing (because everyone
much write a blog engine at some point to learn stuff) and I want to
allow members the ability to update their passwords. What I'm having a
problem with right now i
I have read the (scant) documentation on the datanoise
actionwebservice gems and can't figure out how you are supposed to
structure the SOAP client.
Has anybody ever used actionwebservice as a client? If so could
somebody please put a sample someplace?
Thanks.
--~--~-~--~~-
Hi Ashit. Another thing that you can do is test out the various URL
and path helpers in your app's console. For example:
$ script/console
Loading development environment (Rails 2.1.0)
>>
?> app.photos_url
=> "http://www.example.com/photos";
>>
?> app.photos_path
=> "/photos"
>>
?> quit
Cheers,
N
On Nov 23, 9:31 pm, "Joel Oliveira" <[EMAIL PROTECTED]> wrote:
> Hey everyone,
>
> I have a model I extended w/STI to allow me to write little widgets or
> modules for my web-app ... that part's working well. However, I'm getting
> to the point where, depending on the model's type/class I would
Hey everyone,
I have a model I extended w/STI to allow me to write little widgets or
modules for my web-app ... that part's working well. However, I'm getting
to the point where, depending on the model's type/class I would like to
render a partial so that each type has it's own look/feel/content
Bobnation wrote:
> What OS are you using?
>
> On Nov 23, 7:28�pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
I'm using Ubuntu 8.04
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
What OS are you using?
On Nov 23, 7:28 pm, Mrmaster Mrmaster <[EMAIL PROTECTED]
s.net> wrote:
> Hello,
>
> I am trying to install RubyGems on Ubuntu and i'm having trouble. I've
> downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command
> I get the problem mentioned below. I'd real
The Ruby on Rails web application framework has built up a tremendous
head of steam over the last year. Fueled by some significant benefits
and an impressive portfolio of real-world applications already in
production, Rails is destined to continue making significant inroads in
2006. Simply put
http://www.mrcheapstuff.com/categories/electronics/buycom-coupons/
--~--~-~--~~~---~--~~
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@googlegroups.com
To
Hello,
I am trying to install RubyGems on Ubuntu and i'm having trouble. I've
downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command
I get the problem mentioned below. I'd really appreciate if someone can
help me out.
Thanks
mkdir -p /usr/local/lib/site_ruby/1.8
mkdir -p /usr/
"rake routes" really becomes your friend here as you are able to take
a look at everything that will work. Trust me, just run it and look
over the output to see where you might be going wrong.
On Nov 23, 4:03 pm, Ashit Vora <[EMAIL PROTECTED]> wrote:
> Hi,
> 'm new to Rails.
> I tried using _path
Hello Rick,
Thanks for you reply. Yes, the controller is "admin/products". With
rake routes I have:
DELETE /admin/products/:id {:controller=>"admin/
products", :action=>"destroy"}
I tried to call admin_products_path(product) like you suggested but it
shows me an error (You have a nil object ...
Hey all,
The problems keep coming. Having upgraded everything and upgraded to
Rails 2.2.2 I now wanted to install the MySQL gem as I am getting the
following error when trying to load up the app.
no such file to load -- mysql
Normally running gem install mysql works with no problems but, now
Hi,
My project uses Date::MONTHNAMES and Date::ABBR_MONTHNAMES for
localization.
I've run into an issue where I need to use strptime to parse a
localized string.
Has anyone run into this? How did you fix it?
--
M.
--~--~-~--~~~---~--~~
You received this messag
This might actually work :-)
<%= link_to 'delete', admin_products_path(product),
:method => :delete, :confirm => 'Are you sure?' %>
Rick
On Nov 23, 12:40 pm, Rick <[EMAIL PROTECTED]> wrote:
> Hello Alberto,
>
> In your view, what are you trying to say with [:admin, product].
> Is it p
Hello Ashit,
If you run "rake routes" in your project directory you'll see what
routes are available. Also, the singular vs plural question needs to
be considered here.
Typically:
The model has a singular name - models/path.rb
The controller has a plural name - controllers/paths_controlle
Thanks again!
Frederick Cheung wrote:
> Require it explicitly from the extension file ?
>
> Sent from my iPhone
>
> On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED]
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this messag
On Nov 23, 2008, at 5:22 PM, Peter wrote:
>
> Hmmh,
>
> even after cleaning up the roles_users (without timestamp) it does not
> work (Hint from [1])
> Tried out different order of fixture importing -> nothing helps.
>
> So, I switched to the old way to define fixtures [2] and it works :-)
>
> R
Hello Alberto,
In your view, what are you trying to say with [:admin, product].
Is it perhaps {:controller => "admin/product"}?
rake routes on your routes.rb shows:
DELETE /admin/products/:id
{:action=>"destroy", :controller=>"admin/products"}
So you should be able to use:
Yes!! You are right!! Thanks a lot!!
On Nov 24, 4:04 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On 23 Nov 2008, at 19:07, Alfredo Rico Moros <[EMAIL PROTECTED]>
> wrote:
>
>
>
>
>
> > Hi to everyboy.. I need your help in order to know if I get wrong..
>
> > I have this migration file:
>
Hmmh,
even after cleaning up the roles_users (without timestamp) it does not
work (Hint from [1])
Tried out different order of fixture importing -> nothing helps.
So, I switched to the old way to define fixtures [2] and it works :-)
Regards,
Peter.
[1]
http://groups.google.com/group/rubyonrail
Hi,
'm new to Rails.
I tried using _path and _url with link_to helper method but it doesnt
work for me.
Does anyone know what can be the issue?
my code is
Hello Rails
<%= flash[:notice] %>
<%= link_to 'Show Blog', posts_url %>
Post is my controller
The error 'm getting is
undefined local va
Hey all,
Are you supposed to get some type of feedback when running the rake
rails:update task from a rails shell?
And on that subject, I installed Rails 2.2.2 and then ran the the above
command, got no feedback and nothing changed. Now when I create a new
project I find some new files:
init
thanks - got the auto-creation of nested models working!
Now I seem to be on the next challenge of getting decent validation
error messages show on the view with the nested models :) Seems to
be somewhat discussed at
http://railscasts.com/episodes/75-complex-forms-part-3 but doesn't
seem to hav
Require it explicitly from the extension file ?
Sent from my iPhone
On 23 Nov 2008, at 20:31, Alex Sonar <[EMAIL PROTECTED]
s.net> wrote:
>
> Fred,
>
> I really appreciate your help. The following works like a charm.
>
> silencio:alias u2$ script/console
> Loading development environment (Rail
On 23 Nov 2008, at 19:07, Alfredo Rico Moros <[EMAIL PROTECTED]>
wrote:
>
> Hi to everyboy.. I need your help in order to know if I get wrong..
>
> I have this migration file:
>
> class CreateSpecifications < ActiveRecord::Migration
> def self.up
>create_table :specifications do |t|
>
Schalk,
The install worked fine in this environment:
Ruby version1.8.7 (powerpc-darwin9)
RubyGems version1.3.1
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
A
Fred,
I really appreciate your help. The following works like a charm.
silencio:alias u2$ script/console
Loading development environment (Rails 2.2.2)
>> require 'app/helpers/alias.rb'
=> ["XYZ"]
>> require 'app/views/alias_ext.rb'
=> []
>> XYZ.new 1,2
before chain
in Alias constructor
after cha
Hey Rick,
Adding -v generates the following output:
script/plugin -v install git://github.com/jfrench/rakismet
Plugins will be installed using http
git clone --depth 1 git://github.com/jfrench/rakismet
"C:/DEVELOPMENT/osc/vendor/plugins/rakismet"
removing: C:/DEVELOPMENT/osc/vendor/plugins/raki
The problem here is that the "normal" XYZ in xyz.rb is never loaded so
you're trying to call Object's initialize, which does not take 2
arguments
Fred
Sent from my iPhone
On 23 Nov 2008, at 18:52, Alex Sonar <[EMAIL PROTECTED]
s.net> wrote:
>
> Greetings.
>
> I've got very strange behavio
Hi to everyboy.. I need your help in order to know if I get wrong..
I have this migration file:
class CreateSpecifications < ActiveRecord::Migration
def self.up
create_table :specifications do |t|
t.string :tolerancia
t.integer :umbral
t.timestamps
end
end
def s
Hi all,
I'm trying to implement an admin control panel for my application and
everything seems to work fine, except when I try to call the destroy
method from the view. I really tried to search for a solution, reading
some routing rails articles, but can't figure out what's going on.
When I call
On Nov 23, 7:20 pm, Will <[EMAIL PROTECTED]> wrote:
> Is there a way to tell collection_select to use a specific ID then
> other than machine_user_id. That is what I was originally trying to
> do so I did not have to go down into the object from the form .
Of course!
collection_select(:machine
Is there a way to tell collection_select to use a specific ID then
other than machine_user_id. That is what I was originally trying to
do so I did not have to go down into the object from the form .
I was trying to get around it by using a call to a form $("#
{machine.fqdnj}").machine[user_id].se
Greetings.
I've got very strange behavior of alias_method_chains, and I hope
someone will advise me.
I have a rails 2.2.2 app created with
#rails aliasApp
, a class XYZ residing in app/helpers/xyz.rb:
class XYZ
attr_accessor :name
attr_accessor :value
def initialize (a, b)
puts "i
One place to start is http://www.workingwithrails.com/
On Sun, Nov 23, 2008 at 9:15 AM, tefflox <[EMAIL PROTECTED]> wrote:
>
> Hello, I'm nearing completion of my first paying project. Without
> going into details of my situation up front, I'd like to ask if there
> is somewhere a list of firms
Hi Rick,
> csv_data_dir = RAILS_ROOT + "/public/data/csv"
Now that looks like REAL Ruby-on-Rails programming.
Many thanks.
I'll post back on success/failure later today or tomorrow.
Best wishes,
Richard
On Nov 23, 4:30 am, Rick <[EMAIL PROTECTED]> wrote:
> Richard,
>
> What you want is:
>
>
Hi Duilio,
Thanks for your responses. I'll try them out today. I have a slight
digression: in the process of removing my debugging code I managed to
mess a few things up, which I'll have to fix first. I'll post back
with the outcome.
> PS: I'm sorry for my English
No apology necessary. It
Hey all,
Ok it seems that I got my one app upgraded to 2.1.2 successfully. Yeah!
Now, when I try to install the Rakismet plugin I get the following:
script/plugin install git://github.com/jfrench/rakismet
script/plugin install git://github.com/jfrench/rakismet
removing: C:/DEVELOPMENT/osc/vendo
I have a partial that has a couple of content_for blocks in it. This
works fine if I render it from a view that will in itself get rendered
view yield :layout. But, if I try and render it directly from the
application layout none of the content_for stuff gets interpreted.
Two questions
1) Is this
Hello, I'm nearing completion of my first paying project. Without
going into details of my situation up front, I'd like to ask if there
is somewhere a list of firms that specialize in Rails development.
--~--~-~--~~~---~--~~
You received this message because you ar
Hi,
so I've integrated the Beast forum into my ruby on rails website and
would like to display some of the forum data throughout the website.
Basically, I'd like to list the last 5 posts to a UNIQUE topic, and
also the most popular topics.
I'm sure this wouldn't be too tough to accomplish but I
Hi Michael,
Michael wrote:
>
> Is it possible to rename the images folder.
>
Of course. But I'm pretty sure you won't like the consequences. What are
you trying to accomplish?
Bill
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Am 23.11.2008 um 15:09 schrieb Frederick Cheung:
>
> That's the problem. Acts as taggable on steroids defines its own Tag
> class, your tag class doesn't have all the methods that one has.
Ok, thanx! That was the problem great!
--~--~-~--~~~---~--~~
Y
Thanks for both of you. It looks like the simple way is ignoring it...
On Nov 18, 5:23 am, "Brian Hogan" <[EMAIL PROTECTED]> wrote:
> On our setups, we simply use the built-in mac stuff and then update the old
> versions.
>
> gem update --system
> gem install rails
>
> You can safely ignore the o
That's the problem. Acts as taggable on steroids defines its own Tag
class, your tag class doesn't have all the methods that one has.
Fred
Sent from my iPhone
On 23 Nov 2008, at 13:01, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>
>
> Am 23.11.2008 um 13:24 schrieb Frederick Cheung:
>
>>
>>
I'm using some AJAX to create a form, and when the form is saved, I want
to give the user some information. How to show flash notice in my main
layout.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscr
On Sat, Nov 22, 2008 at 10:08 PM, Rong <[EMAIL PROTECTED]> wrote:
>
> OK, so someone has figured out that Merb is breaking Rails 2.2.2.
I haven't ready anything about that on the Rails or Merb mailing lists. Have
a reference?
> There is a gem called do_sqlite3 which is in conflict with rails.
Hi there, I am trying to use the OpenID authentication plugin of DHH
in conjuction with ruby-openid 2.1.2 gem put it seems there is a
problem because in my login action the plugin redirects me to the
openid provider and then i have the exception when i have to render or
redirect to another page
Th
Am 23.11.2008 um 13:24 schrieb Frederick Cheung:
>
>
>
> On 23 Nov 2008, at 11:43, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>
>>
>>
>> Am 23.11.2008 um 12:10 schrieb Frederick Cheung:
>>
>>>
>>>
>>>
>>> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
I always get the fol
Sent from my iPhone
On 23 Nov 2008, at 12:38, "Greg Hauptmann" <[EMAIL PROTECTED]
> wrote:
>
> oh, got it Frederick,
>
> To be more self sufficient, how would I be able to confirm for myself
> exactly what the Rails controller framework is looking for when it's
> trying to create models out
oh, got it Frederick,
To be more self sufficient, how would I be able to confirm for myself
exactly what the Rails controller framework is looking for when it's
trying to create models out of the param's it gets (i.e. behind the
scenes before it gets to your code)?
If I had a way of confirming t
Sent from my iPhone
On 23 Nov 2008, at 12:06, Zhao Yi <[EMAIL PROTECTED]>
wrote:
>
> I am new to rails. I read some examples and don't understand rails erb
> syntax. There is a piece of code I am not familiar:
>
> <% form_for(@bay_info) do |f| %>
> <%= f.error_messages %>
>
f is a form buil
On 23 Nov 2008, at 11:43, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>
>
> Am 23.11.2008 um 12:10 schrieb Frederick Cheung:
>
>>
>>
>>
>> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>>> I always get the following problem:
>>>
>>> Loading development environment (Rails 2.2.
I am new to rails. I read some examples and don't understand rails erb
syntax. There is a piece of code I am not familiar:
<% form_for(@bay_info) do |f| %>
<%= f.error_messages %>
<%= f.label :HostName %>
<%= f.text_field :HostName %>
...
I wander what f mean. What is its type?
Am 23.11.2008 um 12:10 schrieb Frederick Cheung:
>
>
>
> On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
>> I always get the following problem:
>>
>> Loading development environment (Rails 2.2.2) >> p = Frontpage.find 1
>>
> Do you have your own class called Tag?
class Frontpag
On Nov 23, 11:11 am, Zhao Yi <[EMAIL PROTECTED]> wrote:
> I know I can set it on add_column command but I am looking for a way to
> set the default when creating the Table. See below code, how can I set
> each of them a default value.
>
http://api.rubyonrails.com/classes/ActiveRecord/ConnectionA
I know I can set it on add_column command but I am looking for a way to
set the default when creating the Table. See below code, how can I set
each of them a default value.
def self.up
create_table :bay_infos, :primary_key => :IP do |t|
t.string :HostName
t.string :IP
t.stri
On Nov 22, 11:39 am, Jochen Kaechelin <[EMAIL PROTECTED]> wrote:
> I always get the following problem:
>
> Loading development environment (Rails 2.2.2) >> p = Frontpage.find 1
>
Do you have your own class called Tag?
Fred
--~--~-~--~~~---~--~~
You received this
Ok - thanks a lot for your advice Fred!
I checked my line endings with another editor and in fact found some
unwanted whitespaces.
Now everything works fine!
On 22 Nov., 23:12, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Nov 22, 10:01 pm, jawosis <[EMAIL PROTECTED]> wrote:
>
> > Hi Fred,
On Nov 23, 12:50 am, RichardOnRails
<[EMAIL PROTECTED]> wrote:
> Hi again, Fred,
>
> I just started reading RubyGems Manuals using the URL you provided.
> That's stuff I should have learned a long time ago. Thanks for
> showing me how to get up to speed on RubyGems.
>
No problem. Just to sanity
OK, so someone has figured out that Merb is breaking Rails 2.2.2.
There is a gem called do_sqlite3 which is in conflict with rails. But
when I try to do an uninstall, rubygems says that the gem isn't there
but when I do gem list I can see it.
How do I get rid of it?
--~--~-~--~~--
Click this one U've a lot of opportunity
Click this one U've a lot of opportunity
http://www.AWSurveys.com/HomeMain.cfm?RefID=willam
Click this one U've a lot of opportunity
http://www.AWSurv
On Nov 23, 7:21 am, "Greg Hauptmann" <[EMAIL PROTECTED]>
wrote:
> PS. Actually I've just seen in this RailsCasts episode that Ryan
> seems to have a nested model controller that does translate the parent
> & child model data from the form to parent model and its association
> (child model). Am
On 23 Nov 2008, at 10:34, Anjan Tek wrote:
> Would your solution above work for Flex apps as well? I'm using no
> AJAX.
> Just Flex and rails. Even the upload is done from within Flex.
>
> As I've mentioned previously in the post, I am sending the
> authenticity
> token along with all my requ
Is it possible to rename the images folder.
Thanks
Michael
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
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
Hi!
Would your solution above work for Flex apps as well? I'm using no AJAX.
Just Flex and rails. Even the upload is done from within Flex.
As I've mentioned previously in the post, I am sending the authenticity
token along with all my requests to rails. But the problem is that the
authentici
Richard,
What you want is:
csv_data_dir = RAILS_ROOT + "/public/data/csv"
Rick
On Nov 22, 3:37 pm, RichardOnRails
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm developing a small Rails 2.2.0 app. I have a slightly modified
> scaffold-generated file,
> PayrollSys\app\controllers\cvs_items_controll
Hello Richard,
I'm voting that you should, when convenient, take a look at the
NetBeans IDE. It does have a startup cost - installation is easy but
it's a feature rich tool with lots of buttons to learn how to push.
It does support multiple RoR environments and each Rails app can be
fairly easil
Found the solutions:
1) For the error where the email body was not received by the recipient,
it was because of the naming of the view file has the wrong extension. I
had to changed it to "email_friend.erb", instead of
"email_friend.html.erb.
2) As for the corrupted image file, it was because
100 matches
Mail list logo