Hi,
I am integrating a facebook with my application. I am using plugin
"rfacebook"
for that. I read that there is also one more plugin is availabe which is
"facebooker". Which should I use? and why?
Thanks,
Tushar.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~
Ram wrote:
> its inner HTML. So use
>
> On Mar 18, 8:53�am, Sudhi Kulkarni
Hi Ram,
I tried but once I add br it says it is an RJS Error. Don't know
why ... the snippet I used is
link_to_function name do |page|
page.insert_html :bottom,'text_area', "Hello world "
end
Thanks
Krishna Porandla wrote:
> Hello guys,
>
> How to change the google Maptype to hybrid instead of satelite/map
you can get it by
map.setMapType(G_SATELLITE_MAP);
map.setMapType(G_HYBRID_MAP);
map.setUIToDefault(); // to get all views
thanks
--
Posted via http://www.ruby-forum.com/.
Fresh Mix wrote:
> What is it in Rails 2.3.2?
>
> ActiveRecord::Base.pluralize_table_names = false
Help?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Ta
We are professional ,jeans and T-shirt supplier in china.
Apparel :
jean:.-jeans,Diesel-jeans,bape jean,bbc jean,d&g jean armani jean
Hoody:bape hoody,bbc hoody,LRG hoody,clh hoody,ed hardy hoody,.
hoody,10 deep hoody
jacket: af jacket,.north face jacket...
long sleeve: Burberry sleeve,
Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 5:29 PM, Enzo Rivello <
> rails-mailing-l...@andreas-s.net> wrote:
>
>>
>> {qdg.selectedItem.id}
>> @question.save
>>
>> thanks a lot for reading
>
>
> Hi, the last two lines seem suspect because you're trying to delete and
> save
>
Ian H Stewart wrote:
> My end user would like a report on a single page that he can select
> the header field and sort by that.
Wouldn't you just need to construct an "order by" clause and use that
when you find the records?
@users = User.find(:all, :order => "state, points DESC")
I might even
bramu...@gmail.com wrote:
> Like Student.find returns dob and name I want to add age to it some
> thing like that. Columns that are not exist in the database table but
> I want to add to the return record. How can I do this??
Age would just be a method on the Student model calculated from DOB:
c
its inner HTML. So use
On Mar 18, 8:53 am, Sudhi Kulkarni
wrote:
> Shandy Nantz wrote:
> >> render :text => "This is new line"
>
> > You could say:
>
> > render :inline => "<%= text_field 'test', 'name' %>"
>
> > This would just re-populate the div you are trying to update with the
> > above he
HI,
I am new to Rails started project couple of weeks back. Here is my
requirement please let me know the solution.
When I do find on my active record class it returns all the
columns in my database table. I want to add one or two more cols to
the return record.
Like Student.find returns
Hi,
As Sijo said, setup correct DB connection. You have to mention DB
name in database.yml and also mentioned DB should be in your Mysql or
whatever you are using.
Just mention DB name in database.yml and do as follows,
demo> rake db:create:all
and then restart your server.
--
Posted via
Did u properly setup database connections in config/database.yml ?
--
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 e
My end user would like a report on a single page that he can select
the header field and sort by that.
First all the data is laid out in a table.
Then each row is a different user record.
NameState Zip Points
Any tips on how I could allow the user to click an
Shandy Nantz wrote:
>> render :text => "This is new line"
>
> You could say:
>
> render :inline => "<%= text_field 'test', 'name' %>"
>
> This would just re-populate the div you are trying to update with the
> above helper code.
>
> -S
Hi,
Thanks for all the inputs. The following line works
Hi all,
I just burned two hours of development time trying to debug this issue.
Can someone please tell me if there is a way to disable database caching
when running unit tests or another way to avoid running into this type
of problem??
This does not work:
assert periods(:period1).ongoing? #
any idea?
Thanks
--
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 rubyonrails-talk@googlegroups.com
To unsu
Hi all,
I'm running Rails on top of a Mongrel cluster. I have several model
classes that are going to have so many records it is not feasible to
keep them all in the same table. So I've split out the records into
many different tables, each with its own suffix which corresponds to
the id
Dear all,
What is the best architecture in terms of performance for Rails. Is
lighttpd + mongrel the most recommended deployment architecture for
Rails? Or is there any better architecture that outperform this
architecture?
Thank you very much in advance.
--
If you can't believe in God the cha
On Tue, Mar 17, 2009 at 5:29 PM, Enzo Rivello <
rails-mailing-l...@andreas-s.net> wrote:
>
> Hi all!!
>
> Recently , i tryed to integrate flex and rail, and it was a nice work,
> really fast and flexible, until a curious bug
>
> On my local development machine, i try to destroy an item trough an i
Is this possible ??
Many thnaks
Richard
--~--~-~--~~~---~--~~
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 unsubscribe from this gr
Many thanks to Ar Chron clear explanation. I think I got the concept of
abstract class now.
But how about if I have more than one Generic Class?
class Request
set_table_name "request"
set_primary_key "column_a"
def method_1a
end
end
class Tasklist
set_table_name "tasklist"
def meth
I'm going to assume that you're with CWI Hosting, judging by your
posted name and a post I found on another webmaster board.
If so, some totally free advice:
- the market for RoR shared hosting is not very good; shared servers
just don't typically have the capacity to handle Rails sites with any
since your text field tag isn't part of the model, you could
instantiate the object with the value from the tag and then call
is_valid and check the errors variable if you want the message. else
you'll have to write your own validation methods
On Mar 17, 3:15 pm, Heinz Strunk
wrote:
> But the t
Urgent Please! Someone help!
On Mar 17, 8:35 am, sultan wrote:
> I am on XP. This is the first time I am trying to freeze to a gem.
> This is what I get:
>
> rake rails:freeze:gems --trace
> (in C:/Documents and Settings/Sultan/My Documents/Aptana Studio/
> upload)
> ** Invoke rails:freeze:gems
As a sanity check, did you update the location of Passenger in your
Apache config?
I've made that mistake...
--Matt Jones
On Mar 17, 3:09 pm, yaphi wrote:
> Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3
> required)
>
> On Mar 17, 3:05 pm, Conrad Taylor wrote:
>
> > On Tue, Mar
And more info here:
http://blog.nominet.org.uk/tech/2007/06/14/date-and-time-formating-issues-in-ruby-on-rails/
On Mar 17, 10:01 am, Herman Müller
wrote:
> Chris wrote:
> > Put this at the very end of environment.rb (*after* the 'end' of the
> > Rails::Initializer.run method):
>
> > CalendarDate
Hi all!!
Recently , i tryed to integrate flex and rail, and it was a nice work,
really fast and flexible, until a curious bug
On my local development machine, i try to destroy an item trough an id,
and all goes well.
i set up on the production machine and pop-up this error:
NoMethodError (unde
Wolas!,
Thanks for the reply. I will be able to try this out in the morning.
I'll get back to you with the results.
Elliott
On Mar 17, 5:58 am, "\"Wolas!\"" wrote:
> If i understood correctly, you want the role to be added to the user
> upon creation, but its not.
>
> here is the code that wou
Now I remember I had the same problem when trying to use British-
format dates (dd/mm/). Try this as a starting point:
http://groups.google.com/group/calendar_date_select/browse_thread/thread/86d0451c515c2074/9f93a4a5976119fa
That discussion is getting old now, so it might be worth looking
thr
Chris Gunnels wrote:
> Ok I know that sounds newbish, but I don't want to match the entire
> string. I just want to match the first 25 characters or so.
>
> I have a hash that looks like
>
> somestuff[:something]
>
> Now I want somestuff[:something] to equal a string.
>
> somestuff[:something]
http://www.opensourcerails.com/
On Mon, Mar 16, 2009 at 1:01 PM, Pepe Sanchez
wrote:
>
> Hi all,
>
> I am looking for most popular ruby on rails applications that are
> currently implemented, and also who is using RoR to build new
> applications
>
> Thanks
> --
> Posted via http://www.ruby-forum
On Mar 17, 2009, at 3:24 PM, Chris Gunnels wrote:
>
> Ok I know that sounds newbish, but I don't want to match the entire
> string. I just want to match the first 25 characters or so.
>
> I have a hash that looks like
>
> somestuff[:something]
>
> Now I want somestuff[:something] to equal a stri
I have deleted all my ruby191 stuff and recreated it from scratch by
downloading the binaries of ruby 191 into c:\ruby191, (path has
c:\ruby191\bin) as I already have ruby 186 under c:\ruby\bin.
After getting netbeans 6.5 (6.7m2 latest build) to recognise my new
environment I then installed my
Ok I know that sounds newbish, but I don't want to match the entire
string. I just want to match the first 25 characters or so.
I have a hash that looks like
somestuff[:something]
Now I want somestuff[:something] to equal a string.
somestuff[:something] == 'sadfasdfsdfasdf'
the problem is tha
> that should be ok.
ok, i'll try directly in production mode
> Those are all really differnt domains. Setting the domain to
> users.local would allow sharing with anything.users.local and
> users.local but nothing more. Remember to restart the app between
> changes
yep, i restart it everytime
But the text_field_tag has nothing to do with the @record so it wouldn't
help if I was checking if the @record is valid, right?
tony wrote:
> you could also try...@record.is_valid?
>
> which will validate w/o saving
>
> On Mar 17, 11:00�am, Frederick Cheung
--
Posted via http://www.ruby-for
On Mar 17, 10:04 pm, Heinz Strunk
wrote:
> Hey,
>
> both are actually pretty good approaches I think but I was hoping I
> could use that could use error_messages_for for the text_field_tag...
> that's probably not the case?
> If I was using "if not_good(params..." I'd need to display it
> diffe
On Mar 17, 10:06 pm, Xdmx Xdmx
wrote:
> > Your web browser won't allow you to set a top level cookie (ie one
> > on .localhost), to the web browser it's as if you tried to set one
> > for .com
>
> Hi Frederick, ok..so should it work in the production mode? where the
> session_domain would be li
Spree is an interesting ecommerce application. It runs
out of the box and has a growing community.
http://github.com/schof/spree/tree/master
On Mar 16, 6:14 pm, Bob Martens wrote:
> Look around is the best advice.
>
> Check outhttp://github.comand see what you can find there ... many
> repos
Thanks David, I poked around in the debugger a bit after your
suggestion, and honestly, I don't understand Ruby code well enough to
make sense of it all. Not to mention, I kept running into
>> No sourcefile available for (eval)
However, what I did find was that the << operator, did not issue the
Fred Cheung. Most helpful.
Pepe
On Mar 17, 2:38 am, Cwi Tech guy
wrote:
> Hi,
> I am looking for the most knowledgeable ROR developers on this board.
> In your opinion, who are the most knowledgeable and helpful users on
> this board?
>
> I am offering a free 1 year hosting account for develo
On Mar 17, 7:58 pm, Chris Gunnels
wrote:
> Conrad Taylor wrote:
> > On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels <
> > rails-mailing-l...@andreas-s.net> wrote:
>
> >> I am new to rails and want to figure out the syntax for truncating a
> >> table using a rake file. Any ideas? thanks in advance
> Your web browser won't allow you to set a top level cookie (ie one
> on .localhost), to the web browser it's as if you tried to set one
> for .com
Hi Frederick, ok..so should it work in the production mode? where the
session_domain would be like '.domain.com'
> In the app i'm working on righ
Hey,
both are actually pretty good approaches I think but I was hoping I
could use that could use error_messages_for for the text_field_tag...
that's probably not the case?
If I was using "if not_good(params..." I'd need to display it
differently. It'd be extremly handy if I could just add an
you could also try...@record.is_valid?
which will validate w/o saving
On Mar 17, 11:00 am, Frederick Cheung
wrote:
> On Mar 17, 5:24 pm, Heinz Strunk
> wrote:> Hey people,
>
> > I was wondering whether it's possible to validate a text_field_tag which
> > has nothing to do with the actual objec
I have a rails app that can send emails to gmail, yahoo accounts. But
when it comes to more obscure accounts like em...@my-app.com or
em...@blah.edu, the mail never arrives even though the log shows that
the email was sent. Any ideas why this may be happening?
I have sent an email directly thro
Is there a difference between
ruby script/plugin install git://...
and
git clone git://...
Does the former do more than copy files into the vendors/plugins
directory? Is the latter safe?
Thanks,
MarkD
--~--~-~--~~~---~--~~
You received this message because yo
Fwiw, I'm seeing similar things even on 2.3.2, with slightly different
default_scopes:
default_scope :conditions => ["played_on < ?", Time.now]
leads to:
undefined method `played_on < ?=' for # (when
Game.new is called)
when I call Game.new
Best,
Rick
(and, yes, I know Time.now isn't g
On Tue, Mar 17, 2009 at 11:32 AM, Robert Walker
wrote:
>
> Tushar Gandhi wrote:
>> Hi,
>> I want to integrate my application with LinkedIn. Is anyone knows How
>> to do that in ROR?
>>
>> Thanks,
>> Tushar
>
> http://www.linkedin.com/static?key=developers_widgets&trk=hb_ft_widgets
> http://www
> render :text => "This is new line"
You could say:
render :inline => "<%= text_field 'test', 'name' %>"
This would just re-populate the div you are trying to update with the
above helper code.
-S
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~
I'm having some major issues with the new veresion of rails..
I have some activeresource models that connect to tables that don't
follow the rails naming conventions.. when i try to access an object
or hash via active resource it uncamelizes all the fieldnames / hash
keys (ie: CustomerID becomes
Heinz Strunk wrote:
> Hey people,
>
> I was wondering whether it's possible to validate a text_field_tag which
> has nothing to do with the actual object being created?
>
> Thanks
What about JavaScript? For example, I call a Vlaidation method onsubmit
with a form when somebody creates a new ob
your web server cannot bypass Rails and efficiently serve the
> image!
I admit that I am by no means a database expert but I implemented this
about two weeks ago and have had no problems (so far).
Here is what I did.
First my field in the adatabase I declared as a bytea (Byte Array). I
tried
What is it in Rails 2.3.2?
ActiveRecord::Base.pluralize_table_names = false
--
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 gro
Hi all
I want to check the presence of either one of two fields for instance,
phone number or mobile number, if either one presents, allow the
submission of the form
validates_presence_of :phone, OR :mobile
any idea how to do it
--~--~-~--~~~---~--~~
You received
Another option is to have an association for different types of phones
so that you can allow people to add as many as they need (and classify
if it's mobile, work, home, etc.)
On Tue, Mar 17, 2009 at 1:49 PM, Shuaib85 wrote:
>
> Hi all
>
> I am wondering of how to use validates_presence_of in ca
> I am wondering of how to use validates_presence_of in case I want to
> check either one of the field is present
>
> for example
> validates_presence_of :phone_number, mobile_number
>
> I want to check if either one presents, it accepts the request. How
> can we do that
One way...
validates_pre
Conrad Taylor wrote:
> On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann <
> rails-mailing-l...@andreas-s.net> wrote:
>
>> Step 3. Download the latest version of rubygems, 1.3.1 in my case.
>>
>
> Actually, rubygems comes with ruby 1.9.1. Thus, it's not a seperate
> install as it was in previous rele
Fresh Mix wrote:
> Need simple sample, how to upload image in to MySQL database (in BLOB)
That's one of the big "Don'ts!" among the "Do's and Don't's of Websites". There
are many, many reasons not to put images into your database. The very least of
which - your web server cannot bypass Rails an
Hi all
I am wondering of how to use validates_presence_of in case I want to
check either one of the field is present
for example
validates_presence_of :phone_number, mobile_number
I want to check if either one presents, it accepts the request. How
can we do that
thanks
--~--~-~--~
Conrad Taylor wrote:
> On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann <
> rails-mailing-l...@andreas-s.net> wrote:
>
>> Step 3. Download the latest version of rubygems, 1.3.1 in my case.
>>
>
> Actually, rubygems comes with ruby 1.9.1. Thus, it's not a seperate
> install as it was in previous rele
Need simple sample, how to upload image in to MySQL database (in BLOB)
Rails 2.2.2
--
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 t
Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels <
> rails-mailing-l...@andreas-s.net> wrote:
>
>>
>> I am new to rails and want to figure out the syntax for truncating a
>> table using a rake file. Any ideas? thanks in advance!
>
>
> Hi, what do you mean truncate a table?
That's the funny part. I get no errors it just spits me back to the
login screen. I'm digging into it now and hopefully I find something.
On Mar 17, 3:53 pm, Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 12:48 PM, yaphi wrote:
>
> > Yeah it works when I run script/server which is using mongrel
On Sat, Mar 14, 2009 at 6:17 PM, Chris Cann <
rails-mailing-l...@andreas-s.net> wrote:
>
> I have found the solution for setting up a Ruby 1.9.1 environment with
> rails alongside another ruby and rails environment in a Windows Vista
> environment.
>
> Step 1. Download the Ruby 1.9.1 binaries for
On Tue, Mar 17, 2009 at 12:48 PM, yaphi wrote:
>
> Yeah it works when I run script/server which is using mongrel I guess?
> Won't work with my local passenger install. I'll just wait a while
> maybe there's something that changed.
>
>
> On Mar 17, 3:40 pm, Conrad Taylor wrote:
> > On Tue, Mar 17
I have battled with all sorts of problems over the last 2 days and
almost thought I was there last night when I managed to create a rails
2.3.2 project with ruby 1.9.1 but the mysql driver came up an error
saying it was the wrong version. It seems from research this is a major
problem and that
On Tue, Mar 17, 2009 at 12:36 PM, Chris Gunnels <
rails-mailing-l...@andreas-s.net> wrote:
>
> I am new to rails and want to figure out the syntax for truncating a
> table using a rake file. Any ideas? thanks in advance!
Hi, what do you mean truncate a table? Do you mean delete the contents of
Yeah it works when I run script/server which is using mongrel I guess?
Won't work with my local passenger install. I'll just wait a while
maybe there's something that changed.
On Mar 17, 3:40 pm, Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 12:09 PM, yaphi wrote:
>
> > Yup. I did that, upgra
On Tue, Mar 17, 2009 at 12:09 PM, yaphi wrote:
>
> Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3
> required)
>
> On Mar 17, 3:05 pm, Conrad Taylor wrote:
> > On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote:
> >
> > > I can no longer login using the latest passenger + Rails 2.3 with
I am new to rails and want to figure out the syntax for truncating a
table using a rake file. Any ideas? thanks in advance!
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "R
Hi all --
You can now sign up for Ruby training in Atlanta, April 1-3, and add a
friend for half price!
Just go to:
http://entp.eventwax.com/ruby-training-atlanta/register
and use the promo code "friend". Purchase ONE ticket at the "You plus
friend" price of $2100 (that's $1400 * 1.5), an
Yup. I did that, upgraded to Passenger 2.1.2 (which Rails 2.3
required)
On Mar 17, 3:05 pm, Conrad Taylor wrote:
> On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote:
>
> > I can no longer login using the latest passenger + Rails 2.3 with the
> > restful_authentication plugin. If I run a quick "scrip
On Tue, Mar 17, 2009 at 5:03 AM, yaphi wrote:
>
> I can no longer login using the latest passenger + Rails 2.3 with the
> restful_authentication plugin. If I run a quick "script/server"
> everything is fine. Anyone else having trouble with this?
Hi, did you update your project configuration fil
Just a totally off the bat question - is there any reasonable
guesstimate on the total number of rails installations across the web
serving world?
I was curious to see how fast rail has grown and its tipping point. Any
help/thoughts would be appreciated. Thanks!
--
Posted via http://www.ruby-for
here is specifically what i get in my firefox debug window:
syntax error
wrote:
> here is the js that i am using for the request. does it not make a js
> request?http://pastie.org/418937
>
> here is my controller:
>
> http://pastie.org/418941
>
> then i am using create.js.erb for the response...
i am using rails 2.3.0.
On Mar 17, 1:52 pm, "tashfeen.ekram" wrote:
> here is the js that i am using for the request. does it not make a js
> request?http://pastie.org/418937
>
> here is my controller:
>
> http://pastie.org/418941
>
> then i am using create.js.erb for the response...
>
> On Mar
Tushar Gandhi wrote:
> Hi,
>I want to integrate my application with LinkedIn. Is anyone knows How
> to do that in ROR?
>
> Thanks,
> Tushar
http://www.linkedin.com/static?key=developers_widgets&trk=hb_ft_widgets
http://www.linkedin.com/static?key=developers_apis
--
Posted via http://www.rub
Hey there... well... took a while but I got it to work by going through
some code with a colleague and translating it to Ruby. The CTS cipher
is now being deciphered using CBC.
I hope this helps some other folks in Ruby land. Please suggest some
ways to better document the steps.
Take care,
On Mar 17, 5:24 pm, Heinz Strunk
wrote:
> Hey people,
>
> I was wondering whether it's possible to validate a text_field_tag which
> has nothing to do with the actual object being created?
>
validations are by definition a model centric thing. However there's
nothing stopping you doing
if not_g
here is the js that i am using for the request. does it not make a js
request?
http://pastie.org/418937
here is my controller:
http://pastie.org/418941
then i am using create.js.erb for the response...
On Mar 17, 11:21 am, "ruby...@ymail.com" wrote:
> On 17 Mar., 16:10, "tashfeen.ekram" wro
Hey people,
I was wondering whether it's possible to validate a text_field_tag which
has nothing to do with the actual object being created?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
(Without repeating the example definitions from the previous post)
> For module SX3, is the class Tasklist, Request and Dictionary can call
> method_1-3?
>
The inheritance hierarchy for Tasklist is:
Tasklist < RemoteSX3Model < GenericModel < ActiveRecord::Base
This class can use methods defi
On Mar 17, 4:17 pm, Salil Gaikwad
wrote:
> > No, remote_form_for will use the onsubmit event to make the actual
> > AJAX request. So I don't think overriding the onsubmit attribute would
> > be a good idea... :)
>
> thanx @David.
> Do you know what should do in that case to put javascript form
Ar Chron wrote:
> RemoteModel is declared an abstract_class. When RemoteSX3Model (or 4 or
> 5 - your 'concrete' classes) inherits from RemoteModel, those classes
> don't need to define the methods already present in RemoteModel (unless
> they are overriding the definition), and you get a singl
> No, remote_form_for will use the onsubmit event to make the actual
> AJAX request. So I don't think overriding the onsubmit attribute would
> be a good idea... :)
>
thanx @David.
Do you know what should do in that case to put javascript form
validations?
Thanx & Regards
Salil
--
Posted vi
On Mar 17, 3:28 pm, Sacredceltic wrote:
>
> It drops OK, but :
> 1) The problem is, the ":with" parameter takes only one key. How do I
> convey the second one ? It doesn't seem to accept a hash...
There's some examples of the usage of :with here:
http://www.spacevatican.org/2008/5/17/with-or-w
Sorry, what MaD and I were hinting at was something more along the lines
of:
ActiveRecord > RemoteModel > RemoteSX(n)Model
where all the common things (like the readonly? and the
find_incomplete_tasklist methods, or any new common methods) are defined
in the RemoteModel class
RemoteModel is
Mike Just wrote:
> 2) The Editor saves backup files from the last version of the file with
> extension .bak, like (xxx.html.erb.bak):
> /rails_apps/coconut/app/views/flights/show.html.erb.bak
I have no idea why Rails is trying to use your backup files. Maybe it
sees the "html.erb" and ignores th
2009/3/17 "Wolas!" :
> When you followed gregs advice you ended up sort of "fooling" the ruby
> command. now you have two of everything (2 rails gems, one under 1.8
> and one under 1.9).
There's no such thing as a "ruby command" (at least not in my shell).
There is a ruby binary, and there's a pa
Thank you for your help, that works fine now!!
--
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 rubyonrails-
On 17 Mar., 16:33, Nish Patel
wrote:
> ruby...@ymail.com wrote:
> > On 17 Mar., 16:28, "ruby...@ymail.com" wrote:
>
> >> > > Thank you clever people
>
> >> > Assuming the name of your model is Item, you can do it this way:
>
> >> > Enquries Today: <%= Item.count %>
>
> >> > Just replace "I
ruby...@ymail.com wrote:
> On 17 Mar., 16:28, "ruby...@ymail.com" wrote:
>>
>> > > Thank you clever people
>>
>> > Assuming the name of your model is Item, you can do it this way:
>>
>> > Enquries Today: <%= Item.count %>
>>
>> > Just replace "Item" with whatever your model is called. #count
Hi Folks,
I ran into the same problem. Here is my fix, which solved the problem
(I've added it to my environment.rb):
module ActiveRecord
module Serialization
class Serializer
def add_includes_with_nested_include(&block)
if include_associations = options.delete(:include)
sudo gem19 install rails?
On Mar 17, 6:21 am, "\"Wolas!\"" wrote:
> When you followed gregs advice you ended up sort of "fooling" the ruby
> command. now you have two of everything (2 rails gems, one under 1.8
> and one under 1.9).
>
> make sure you are calling the correct gem from the correct p
On 17 Mar., 16:28, "ruby...@ymail.com" wrote:
> On 17 Mar., 16:27, "ruby...@ymail.com" wrote:
>
>
>
>
>
> > On 17 Mar., 16:05, Nish Patel
> > wrote:
>
> > > Hi all,
>
> > > as you may have gathered I am a newbie to rails and programming. I
> > > want to count the number of enquiries in t
On 17 Mar., 16:27, "ruby...@ymail.com" wrote:
> On 17 Mar., 16:05, Nish Patel
> wrote:
>
> > Hi all,
>
> > as you may have gathered I am a newbie to rails and programming. I
> > want to count the number of enquiries in the database and produce it as
> > a number in the view preferably in
I have 3 tables A, B and C
Table A has_many Cs
Table B has_many Cs
so C contains 2 foreign keys, A_id and B_id)
I have a screen with 2 lists : A list and B list
I would like to be able to create a C record by simply dropping an A
element on a B element
I tried this :
<% for A in @As %>
On 17 Mar., 16:05, Nish Patel
wrote:
> Hi all,
>
> as you may have gathered I am a newbie to rails and programming. I
> want to count the number of enquiries in the database and produce it as
> a number in the view preferably in the index page. All I want is the
> number of items in the da
On 17 Mar., 16:10, "tashfeen.ekram" wrote:
> I am trying to follow this tutorial here by Ryan
> :http://railscasts.com/episodes/136-jquery
>
> it is a AJAX tutorial on using jquery and expecting the response to be
> in the form of javascript that will be acted upon by the browser.
> however, i
1 - 100 of 192 matches
Mail list logo